]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[SPARC64]: Fix sparc64_next_event() error return.
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 27 Mar 2007 08:20:14 +0000 (01:20 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:54:18 +0000 (01:54 -0700)
It should return an error code not a boolean.

Based upon an hpet timer fix by Thomas Gleixner.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/time.c

index 21e3b0b9d9ceb3f0e76af13200959bafd9682d61..0eb846534ff43e7921c6a017e062a5b5eb44ccc1 100644 (file)
@@ -910,7 +910,7 @@ static struct notifier_block sparc64_cpufreq_notifier_block = {
 static int sparc64_next_event(unsigned long delta,
                              struct clock_event_device *evt)
 {
-       return tick_ops->add_compare(delta);
+       return tick_ops->add_compare(delta) ? -ETIME : 0;
 }
 
 static void sparc64_timer_setup(enum clock_event_mode mode,