From: David Miller <davem@davemloft.net>
Date: Tue, 17 Jul 2007 00:17:44 +0000 (-0700)
Subject: [HRTIMER] Fix cpu pointer arg to clockevents_notify()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7713a7d195c2e11d7ba6a973317da0af862d1264;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

[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>
---

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) {