[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20070716.171744.85720528.davem@davemloft.net>
Date: Mon, 16 Jul 2007 17:17:44 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: torvalds@...ux-foundation.org
CC: linux-kernel@...r.kernel.org
Subject: [PATCH]: 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.
Signed-off-by: David S. Miller <davem@...emloft.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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists