Commit d62c6f09 authored by David S. Miller's avatar David S. Miller

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 112f4871
...@@ -910,7 +910,7 @@ static struct notifier_block sparc64_cpufreq_notifier_block = { ...@@ -910,7 +910,7 @@ static struct notifier_block sparc64_cpufreq_notifier_block = {
static int sparc64_next_event(unsigned long delta, static int sparc64_next_event(unsigned long delta,
struct clock_event_device *evt) 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, static void sparc64_timer_setup(enum clock_event_mode mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment