[PATCH] x86: cpu_khz type fix
x86_64's cpu_khz is unsigned int and there is no reason why x86 needs to use unsigned long. So make cpu_khz unsigned int on x86 as well. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
129f69465b
commit
a3a255e744
@ -158,7 +158,7 @@ static int __init init_hpet(char* override)
|
||||
{ unsigned long eax=0, edx=1000;
|
||||
ASM_DIV64_REG(cpu_khz, edx, tsc_quotient,
|
||||
eax, edx);
|
||||
printk("Detected %lu.%03lu MHz processor.\n",
|
||||
printk("Detected %u.%03u MHz processor.\n",
|
||||
cpu_khz / 1000, cpu_khz % 1000);
|
||||
}
|
||||
set_cyc2ns_scale(cpu_khz/1000);
|
||||
|
Reference in New Issue
Block a user