aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/time.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-03-27 04:20:14 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:54:18 -0400
commitd62c6f093a1ef8fa5f8951e8da93c8ddd3ce193a (patch)
treeb4402ce7fb48f158288b0134b00c3108aa52b596 /arch/sparc64/kernel/time.c
parent112f48716d9f292c92a033cff9e3ce7405ed4280 (diff)
[SPARC64]: Fix sparc64_next_event() error return.
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>
Diffstat (limited to 'arch/sparc64/kernel/time.c')
-rw-r--r--arch/sparc64/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index 21e3b0b9d9ce..0eb846534ff4 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -910,7 +910,7 @@ static struct notifier_block sparc64_cpufreq_notifier_block = {
910static int sparc64_next_event(unsigned long delta, 910static int sparc64_next_event(unsigned long delta,
911 struct clock_event_device *evt) 911 struct clock_event_device *evt)
912{ 912{
913 return tick_ops->add_compare(delta); 913 return tick_ops->add_compare(delta) ? -ETIME : 0;
914} 914}
915 915
916static void sparc64_timer_setup(enum clock_event_mode mode, 916static void sparc64_timer_setup(enum clock_event_mode mode,