Skip to content

Commit

Permalink
[HRTIMER] Fix cpu pointer arg to clockevents_notify()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
davem330 authored and Linus Torvalds committed Jul 17, 2007
1 parent 29417b8 commit 7713a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 7713a7d

Please sign in to comment.