Skip to contentSkip to conversation

: Fix hrtimer hotplug cpu notifier bug on 64-bit.

PATCH New David Miller 1 participant 1 message Jul 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix hrtimer hotplug cpu notifier bug on 64-bit.

I discussed this with Thomas Gleixner last night and he seemed to be OK with fixing the problem as follows.

If he wants to do things differently, he can submit an alternate change, but this thing is quite trivial so I doubt that will happen :-)

Please apply, thanks.

[HRTIMER]: Fix cpu pointer arg to clockevents_notify().

All of the clockevent notifiers expect a pointer to an "unsigned int" cpu argument, but hrtimer_cpu_notify() passes in a pointer to a long.

kernel/hrtimer.c +1 -1
index 23c03f4..72d0342 100644
@@ -1406,7 +1406,7 @@ static void migrate_hrtimers(int cpu)
 static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
 					unsigned long action, void *hcpu)
 {
-	long cpu = (long)hcpu;
+	unsigned int cpu = (long)hcpu;
 
 	switch (action) {