Commit c0e299b1a91cbdb21ae08e382a4176200398bc36

Authored by Thomas Gleixner
1 parent 257313b2a8

clockevents/source: Use u64 to make 32bit happy

unsigned long is not 64bit on 32bit machine.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

kernel/time/clockevents.c
... ... @@ -197,7 +197,7 @@
197 197 static void clockevents_config(struct clock_event_device *dev,
198 198 u32 freq)
199 199 {
200   - unsigned long sec;
  200 + u64 sec;
201 201  
202 202 if (!(dev->features & CLOCK_EVT_FEAT_ONESHOT))
203 203 return;
kernel/time/clocksource.c
... ... @@ -639,7 +639,7 @@
639 639 */
640 640 void __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq)
641 641 {
642   - unsigned long sec;
  642 + u64 sec;
643 643  
644 644 /*
645 645 * Calc the maximum number of seconds which we can run before