mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]: Fix hrtimer hotplug cpu notifier bug on 64-bit.
@ 2007-07-17  0:17 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2007-07-17  0:17 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


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.

Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 23c03f4..72d0342 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -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) {
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-17  0:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-17  0:17 [PATCH]: Fix hrtimer hotplug cpu notifier bug on 64-bit David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®