Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0e299b1 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

clockevents/source: Use u64 to make 32bit happy



unsigned long is not 64bit on 32bit machine.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 257313b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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