X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fhrtimer.c;h=b7f0388bd71c80d32eb29f79b0c0319705a8bd7c;hb=b53471711f21ba0e151075f0e1d6d531eb50f1b1;hp=f181ff4dd32ec18221955508d515c3b8da81c6a6;hpb=500156a0f0e81e24991f5f0db56e859db1fbdacf;p=linux-2.6 diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index f181ff4dd3..b7f0388bd7 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timer) if (ret >= 0) return ret; + cpu_relax(); } } @@ -835,7 +836,7 @@ static void migrate_hrtimers(int cpu) } #endif /* CONFIG_HOTPLUG_CPU */ -static int __devinit hrtimer_cpu_notify(struct notifier_block *self, +static int hrtimer_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) { long cpu = (long)hcpu; @@ -859,7 +860,7 @@ static int __devinit hrtimer_cpu_notify(struct notifier_block *self, return NOTIFY_OK; } -static struct notifier_block __devinitdata hrtimers_nb = { +static struct notifier_block hrtimers_nb = { .notifier_call = hrtimer_cpu_notify, };