x86: improve default idle
authorIngo Molnar <mingo@elte.hu>
Wed, 2 Apr 2008 11:23:22 +0000 (13:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:34 +0000 (17:41 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c

index 08c41ed5e8055bdae7acb6b5f0217f90a815b05d..3903a8f2eb978f2d9c6676c8f1bc9813d749fae9 100644 (file)
@@ -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;
index 4f40272474dd36f72f8156fb4639a79a020b4491..e75ccc8a2b87b7e659e0ee4c8ad74459239b98bb 100644 (file)
@@ -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;