summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-04-02 13:23:22 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:34 +0200
commit13af4836b3914b23946f6a8982934e2c828c183f (patch)
tree8dbca8c4c76ceff32dc6de36b987ed5dc5ea8f59
parentf5149a49f994e5c469ac398af7cdeb8eb612d3a4 (diff)
downloadlinux-3.10-13af4836b3914b23946f6a8982934e2c828c183f.tar.gz
linux-3.10-13af4836b3914b23946f6a8982934e2c828c183f.tar.bz2
linux-3.10-13af4836b3914b23946f6a8982934e2c828c183f.zip
x86: improve default idle
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/process_32.c8
-rw-r--r--arch/x86/kernel/process_64.c8
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index 08c41ed5e80..3903a8f2eb9 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -113,16 +113,8 @@ void default_idle(void)
local_irq_disable();
if (!need_resched()) {
- ktime_t t0, t1;
- u64 t0n, t1n;
-
- t0 = ktime_get();
- t0n = ktime_to_ns(t0);
safe_halt(); /* enables interrupts racelessly */
local_irq_disable();
- t1 = ktime_get();
- t1n = ktime_to_ns(t1);
- sched_clock_idle_wakeup_event(t1n - t0n);
}
local_irq_enable();
current_thread_info()->status |= TS_POLLING;
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index 4f40272474d..e75ccc8a2b8 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -107,16 +107,8 @@ void default_idle(void)
smp_mb();
local_irq_disable();
if (!need_resched()) {
- ktime_t t0, t1;
- u64 t0n, t1n;
-
- t0 = ktime_get();
- t0n = ktime_to_ns(t0);
safe_halt(); /* enables interrupts racelessly */
local_irq_disable();
- t1 = ktime_get();
- t1n = ktime_to_ns(t1);
- sched_clock_idle_wakeup_event(t1n - t0n);
}
local_irq_enable();
current_thread_info()->status |= TS_POLLING;