瀏覽代碼

clockevents/source: Use u64 to make 32bit happy

unsigned long is not 64bit on 32bit machine.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thomas Gleixner 14 年之前
父節點
當前提交
c0e299b1a9
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      kernel/time/clockevents.c
  2. 1 1
      kernel/time/clocksource.c

+ 1 - 1
kernel/time/clockevents.c

@@ -197,7 +197,7 @@ EXPORT_SYMBOL_GPL(clockevents_register_device);
 static void clockevents_config(struct clock_event_device *dev,
 static void clockevents_config(struct clock_event_device *dev,
 			       u32 freq)
 			       u32 freq)
 {
 {
-	unsigned long sec;
+	u64 sec;
 
 
 	if (!(dev->features & CLOCK_EVT_FEAT_ONESHOT))
 	if (!(dev->features & CLOCK_EVT_FEAT_ONESHOT))
 		return;
 		return;

+ 1 - 1
kernel/time/clocksource.c

@@ -639,7 +639,7 @@ static void clocksource_enqueue(struct clocksource *cs)
  */
  */
 void __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq)
 void __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq)
 {
 {
-	unsigned long sec;
+	u64 sec;
 
 
 	/*
 	/*
 	 * Calc the maximum number of seconds which we can run before
 	 * Calc the maximum number of seconds which we can run before