diff options
| -rw-r--r-- | arch/i386/kernel/cpu/proc.c | 2 | ||||
| -rw-r--r-- | arch/i386/kernel/smpboot.c | 2 | ||||
| -rw-r--r-- | arch/i386/kernel/time.c | 2 | ||||
| -rw-r--r-- | arch/i386/kernel/timers/common.c | 3 | ||||
| -rw-r--r-- | arch/i386/kernel/timers/timer_hpet.c | 2 | ||||
| -rw-r--r-- | arch/i386/kernel/timers/timer_tsc.c | 7 | ||||
| -rw-r--r-- | include/asm-i386/timex.h | 2 |
7 files changed, 11 insertions, 9 deletions
diff --git a/arch/i386/kernel/cpu/proc.c b/arch/i386/kernel/cpu/proc.c index 7323c19f354e..8bd77d948a84 100644 --- a/arch/i386/kernel/cpu/proc.c +++ b/arch/i386/kernel/cpu/proc.c | |||
| @@ -86,7 +86,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
| 86 | seq_printf(m, "stepping\t: unknown\n"); | 86 | seq_printf(m, "stepping\t: unknown\n"); |
| 87 | 87 | ||
| 88 | if ( cpu_has(c, X86_FEATURE_TSC) ) { | 88 | if ( cpu_has(c, X86_FEATURE_TSC) ) { |
| 89 | seq_printf(m, "cpu MHz\t\t: %lu.%03lu\n", | 89 | seq_printf(m, "cpu MHz\t\t: %u.%03u\n", |
| 90 | cpu_khz / 1000, (cpu_khz % 1000)); | 90 | cpu_khz / 1000, (cpu_khz % 1000)); |
| 91 | } | 91 | } |
| 92 | 92 | ||
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index aaad95e7f879..c20d96d5c15c 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c | |||
| @@ -205,7 +205,7 @@ static void __init synchronize_tsc_bp (void) | |||
| 205 | unsigned long long t0; | 205 | unsigned long long t0; |
| 206 | unsigned long long sum, avg; | 206 | unsigned long long sum, avg; |
| 207 | long long delta; | 207 | long long delta; |
| 208 | unsigned long one_usec; | 208 | unsigned int one_usec; |
| 209 | int buggy = 0; | 209 | int buggy = 0; |
| 210 | 210 | ||
| 211 | printk(KERN_INFO "checking TSC synchronization across %u CPUs: ", num_booting_cpus()); | 211 | printk(KERN_INFO "checking TSC synchronization across %u CPUs: ", num_booting_cpus()); |
diff --git a/arch/i386/kernel/time.c b/arch/i386/kernel/time.c index 8bc8363fbb4c..e68d9fdb0759 100644 --- a/arch/i386/kernel/time.c +++ b/arch/i386/kernel/time.c | |||
| @@ -77,7 +77,7 @@ u64 jiffies_64 = INITIAL_JIFFIES; | |||
| 77 | 77 | ||
| 78 | EXPORT_SYMBOL(jiffies_64); | 78 | EXPORT_SYMBOL(jiffies_64); |
| 79 | 79 | ||
| 80 | unsigned long cpu_khz; /* Detected as we calibrate the TSC */ | 80 | unsigned int cpu_khz; /* Detected as we calibrate the TSC */ |
| 81 | EXPORT_SYMBOL(cpu_khz); | 81 | EXPORT_SYMBOL(cpu_khz); |
| 82 | 82 | ||
| 83 | extern unsigned long wall_jiffies; | 83 | extern unsigned long wall_jiffies; |
diff --git a/arch/i386/kernel/timers/common.c b/arch/i386/kernel/timers/common.c index b38cc0d0c71a..37353bd31803 100644 --- a/arch/i386/kernel/timers/common.c +++ b/arch/i386/kernel/timers/common.c | |||
| @@ -163,7 +163,8 @@ void init_cpu_khz(void) | |||
| 163 | :"=a" (cpu_khz), "=d" (edx) | 163 | :"=a" (cpu_khz), "=d" (edx) |
| 164 | :"r" (tsc_quotient), | 164 | :"r" (tsc_quotient), |
| 165 | "0" (eax), "1" (edx)); | 165 | "0" (eax), "1" (edx)); |
| 166 | printk("Detected %lu.%03lu MHz processor.\n", cpu_khz / 1000, cpu_khz % 1000); | 166 | printk("Detected %u.%03u MHz processor.\n", |
| 167 | cpu_khz / 1000, cpu_khz % 1000); | ||
| 167 | } | 168 | } |
| 168 | } | 169 | } |
| 169 | } | 170 | } |
diff --git a/arch/i386/kernel/timers/timer_hpet.c b/arch/i386/kernel/timers/timer_hpet.c index 15a7d727bd6f..d766e0963ac1 100644 --- a/arch/i386/kernel/timers/timer_hpet.c +++ b/arch/i386/kernel/timers/timer_hpet.c | |||
| @@ -158,7 +158,7 @@ static int __init init_hpet(char* override) | |||
| 158 | { unsigned long eax=0, edx=1000; | 158 | { unsigned long eax=0, edx=1000; |
| 159 | ASM_DIV64_REG(cpu_khz, edx, tsc_quotient, | 159 | ASM_DIV64_REG(cpu_khz, edx, tsc_quotient, |
| 160 | eax, edx); | 160 | eax, edx); |
| 161 | printk("Detected %lu.%03lu MHz processor.\n", | 161 | printk("Detected %u.%03u MHz processor.\n", |
| 162 | cpu_khz / 1000, cpu_khz % 1000); | 162 | cpu_khz / 1000, cpu_khz % 1000); |
| 163 | } | 163 | } |
| 164 | set_cyc2ns_scale(cpu_khz/1000); | 164 | set_cyc2ns_scale(cpu_khz/1000); |
diff --git a/arch/i386/kernel/timers/timer_tsc.c b/arch/i386/kernel/timers/timer_tsc.c index 27f08ae9120b..54c36b182021 100644 --- a/arch/i386/kernel/timers/timer_tsc.c +++ b/arch/i386/kernel/timers/timer_tsc.c | |||
| @@ -256,7 +256,7 @@ static unsigned long loops_per_jiffy_ref = 0; | |||
| 256 | 256 | ||
| 257 | #ifndef CONFIG_SMP | 257 | #ifndef CONFIG_SMP |
| 258 | static unsigned long fast_gettimeoffset_ref = 0; | 258 | static unsigned long fast_gettimeoffset_ref = 0; |
| 259 | static unsigned long cpu_khz_ref = 0; | 259 | static unsigned int cpu_khz_ref = 0; |
| 260 | #endif | 260 | #endif |
| 261 | 261 | ||
| 262 | static int | 262 | static int |
| @@ -323,7 +323,7 @@ static inline void cpufreq_delayed_get(void) { return; } | |||
| 323 | int recalibrate_cpu_khz(void) | 323 | int recalibrate_cpu_khz(void) |
| 324 | { | 324 | { |
| 325 | #ifndef CONFIG_SMP | 325 | #ifndef CONFIG_SMP |
| 326 | unsigned long cpu_khz_old = cpu_khz; | 326 | unsigned int cpu_khz_old = cpu_khz; |
| 327 | 327 | ||
| 328 | if (cpu_has_tsc) { | 328 | if (cpu_has_tsc) { |
| 329 | init_cpu_khz(); | 329 | init_cpu_khz(); |
| @@ -534,7 +534,8 @@ static int __init init_tsc(char* override) | |||
| 534 | :"=a" (cpu_khz), "=d" (edx) | 534 | :"=a" (cpu_khz), "=d" (edx) |
| 535 | :"r" (tsc_quotient), | 535 | :"r" (tsc_quotient), |
| 536 | "0" (eax), "1" (edx)); | 536 | "0" (eax), "1" (edx)); |
| 537 | printk("Detected %lu.%03lu MHz processor.\n", cpu_khz / 1000, cpu_khz % 1000); | 537 | printk("Detected %u.%03u MHz processor.\n", |
| 538 | cpu_khz / 1000, cpu_khz % 1000); | ||
| 538 | } | 539 | } |
| 539 | set_cyc2ns_scale(cpu_khz/1000); | 540 | set_cyc2ns_scale(cpu_khz/1000); |
| 540 | return 0; | 541 | return 0; |
diff --git a/include/asm-i386/timex.h b/include/asm-i386/timex.h index e370f907bd39..292b5a68f627 100644 --- a/include/asm-i386/timex.h +++ b/include/asm-i386/timex.h | |||
| @@ -47,7 +47,7 @@ static inline cycles_t get_cycles (void) | |||
| 47 | return ret; | 47 | return ret; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | extern unsigned long cpu_khz; | 50 | extern unsigned int cpu_khz; |
| 51 | 51 | ||
| 52 | extern int read_current_timer(unsigned long *timer_value); | 52 | extern int read_current_timer(unsigned long *timer_value); |
| 53 | #define ARCH_HAS_READ_CURRENT_TIMER 1 | 53 | #define ARCH_HAS_READ_CURRENT_TIMER 1 |
