Skip to content

Commit

Permalink
clockevents/source: Use u64 to make 32bit happy
Browse files Browse the repository at this point in the history
unsigned long is not 64bit on 32bit machine.

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO committed May 20, 2011
1 parent 257313b commit c0e299b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ EXPORT_SYMBOL_GPL(clockevents_register_device);
static void clockevents_config(struct clock_event_device *dev,
u32 freq)
{
unsigned long sec;
u64 sec;

if (!(dev->features & CLOCK_EVT_FEAT_ONESHOT))
return;
Expand Down
2 changes: 1 addition & 1 deletion kernel/time/clocksource.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static void clocksource_enqueue(struct clocksource *cs)
*/
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
Expand Down

0 comments on commit c0e299b

Please sign in to comment.