projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d50efc6
)
x86: move out tick_nohz_stop_sched_tick() call from the loop
author
Hiroshi Shimamoto
<
[email protected]
>
Wed, 30 Jan 2008 12:33:00 +0000
(13:33 +0100)
committer
Ingo Molnar
<
[email protected]
>
Wed, 30 Jan 2008 12:33:00 +0000
(13:33 +0100)
Move out tick_nohz_stop_sched_tick() call from the loop in cpu_idle
same as 32-bit version.
Signed-off-by: Hiroshi Shimamoto <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/kernel/process_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/process_64.c
b/arch/x86/kernel/process_64.c
index 78d80067b7f90e5b60a164af07219e65560add92..a0130eb2fa50a088a20025ffd0c92c72f3f5a26a 100644
(file)
--- a/
arch/x86/kernel/process_64.c
+++ b/
arch/x86/kernel/process_64.c
@@
-170,14
+170,13
@@
void cpu_idle(void)
current_thread_info()->status |= TS_POLLING;
/* endless idle loop with no priority at all */
while (1) {
+ tick_nohz_stop_sched_tick();
while (!need_resched()) {
void (*idle)(void);
if (__get_cpu_var(cpu_idle_state))
__get_cpu_var(cpu_idle_state) = 0;
- tick_nohz_stop_sched_tick();
-
rmb();
idle = pm_idle;
if (!idle)