summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2007-07-16 17:17:44 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 17:29:56 -0700
commit7713a7d195c2e11d7ba6a973317da0af862d1264 (patch)
tree6ce86caeb0ae68b39e62fbf40591ec5bc22150e1 /kernel
parent29417b899a77aaba1c060f5e123db4f50006f58a (diff)
downloadlinux-7713a7d195c2e11d7ba6a973317da0af862d1264.tar.gz
linux-7713a7d195c2e11d7ba6a973317da0af862d1264.tar.bz2
linux-7713a7d195c2e11d7ba6a973317da0af862d1264.zip
[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. [ Discussed with and ok by Thomas Gleixner ] Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hrtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 23c03f43e196..72d034258ba1 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) {