diff options
author | marcel <marcel@FreeBSD.org> | 2009-12-23 04:48:42 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-12-23 04:48:42 +0000 |
commit | 6c6778bb48b1c2300ef6ed51d5ef47cbeaa34830 (patch) | |
tree | 80171d7b1c78845525ce5c95e2ea3ec5883cf92b /sys/ia64/include | |
parent | 84986e81a575ba523a5119bdf147f38106fcb2c2 (diff) | |
download | FreeBSD-src-6c6778bb48b1c2300ef6ed51d5ef47cbeaa34830.zip FreeBSD-src-6c6778bb48b1c2300ef6ed51d5ef47cbeaa34830.tar.gz |
Export the bus, cpu and itc frequencies under the hw.freq sysctl node.
The frequencies are in MHz (i.e. a value of 1000 represents 1GHz). The
frequencies are rounded to the nearest whole MHz.
While here, rename and re-type bus_frequency, processor_frequency and
itc_frequency to bus_freq, cpu_freq and itc_freq and make them static.
As unsigned integers, the hw.freq.cpu sysctl can more easily be made
generic (across all architectures) making porting easier.
MFC after: 3 days
Diffstat (limited to 'sys/ia64/include')
-rw-r--r-- | sys/ia64/include/clock.h | 1 | ||||
-rw-r--r-- | sys/ia64/include/md_var.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/clock.h b/sys/ia64/include/clock.h index aa4220a..772fc2a 100644 --- a/sys/ia64/include/clock.h +++ b/sys/ia64/include/clock.h @@ -14,7 +14,6 @@ #define CLOCK_VECTOR 254 extern uint64_t ia64_clock_reload; -extern uint64_t itc_frequency; #endif diff --git a/sys/ia64/include/md_var.h b/sys/ia64/include/md_var.h index 6ee4cb4..7fdcb2d 100644 --- a/sys/ia64/include/md_var.h +++ b/sys/ia64/include/md_var.h @@ -90,6 +90,7 @@ int ia64_highfp_enable(struct thread *, struct trapframe *); int ia64_highfp_save(struct thread *); int ia64_highfp_save_ipi(void); struct ia64_init_return ia64_init(void); +u_int ia64_itc_freq(void); void ia64_probe_sapics(void); void ia64_sync_icache(vm_offset_t, vm_size_t); void interrupt(struct trapframe *); |