提交 e8e42a5c 编写于 作者: R Richard Kuo

hexagon: use renamed tick_nohz_idle_* functions

Signed-off-by: NRichard Kuo <rkuo@codeaurora.org>
上级 6bbbc30c
/* /*
* Process creation support for Hexagon * Process creation support for Hexagon
* *
* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. * Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and
...@@ -88,7 +88,7 @@ void (*idle_sleep)(void) = default_idle; ...@@ -88,7 +88,7 @@ void (*idle_sleep)(void) = default_idle;
void cpu_idle(void) void cpu_idle(void)
{ {
while (1) { while (1) {
tick_nohz_stop_sched_tick(1); tick_nohz_idle_enter();
local_irq_disable(); local_irq_disable();
while (!need_resched()) { while (!need_resched()) {
idle_sleep(); idle_sleep();
...@@ -97,7 +97,7 @@ void cpu_idle(void) ...@@ -97,7 +97,7 @@ void cpu_idle(void)
local_irq_disable(); local_irq_disable();
} }
local_irq_enable(); local_irq_enable();
tick_nohz_restart_sched_tick(); tick_nohz_idle_exit();
schedule(); schedule();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册