提交 d62c6f09 编写于 作者: D 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: NDavid S. Miller <davem@davemloft.net>
上级 112f4871
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册