Browse Source

x86: tsc_64.c make constant UL

arch/x86/kernel/tsc_64.c:245:13: warning: constant 0x100000000 is so big it is long

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Thomas Gleixner 17 years ago
parent
commit
c2c14fb7af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kernel/tsc_64.c

+ 1 - 1
arch/x86/kernel/tsc_64.c

@@ -242,7 +242,7 @@ void __init tsc_calibrate(void)
 	if (hpet) {
 	if (hpet) {
 		printk(KERN_INFO "TSC calibrated against HPET\n");
 		printk(KERN_INFO "TSC calibrated against HPET\n");
 		if (hpet2 < hpet1)
 		if (hpet2 < hpet1)
-			hpet2 += 0x100000000;
+			hpet2 += 0x100000000UL;
 		hpet2 -= hpet1;
 		hpet2 -= hpet1;
 		tsc1 = (hpet2 * hpet_readl(HPET_PERIOD)) / 1000000;
 		tsc1 = (hpet2 * hpet_readl(HPET_PERIOD)) / 1000000;
 	} else {
 	} else {