From 6c6778bb48b1c2300ef6ed51d5ef47cbeaa34830 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 23 Dec 2009 04:48:42 +0000 Subject: 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 --- sys/ia64/include/clock.h | 1 - sys/ia64/include/md_var.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/ia64/include') 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 *); -- cgit v1.1