forked from Minki/linux
[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>
This commit is contained in:
parent
112f48716d
commit
d62c6f093a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user