lkml.org 
[lkml]   [2007]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch-mm 22/23] x86_64: prep idle loop for dynticks
    From:	Chris Wright <chrisw@sous-sol.org>

    Add tick_nohz_{stop,restart}_sched_tick to idle
    loop in prepartion for turning on dynticks. These
    are just noops until NO_HZ is enabled in next patch.

    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Andi Kleen <ak@suse.de>

    ---
    arch/x86_64/kernel/process.c | 4 ++++
    1 file changed, 4 insertions(+)

    Index: linux-2.6.22-rc4-mm/arch/x86_64/kernel/process.c
    ===================================================================
    --- linux-2.6.22-rc4-mm.orig/arch/x86_64/kernel/process.c 2007-06-10 10:44:36.000000000 +0200
    +++ linux-2.6.22-rc4-mm/arch/x86_64/kernel/process.c 2007-06-10 10:44:40.000000000 +0200
    @@ -37,6 +37,7 @@
    #include <linux/notifier.h>
    #include <linux/kprobes.h>
    #include <linux/kdebug.h>
    +#include <linux/tick.h>

    #include <asm/uaccess.h>
    #include <asm/pgtable.h>
    @@ -207,6 +208,8 @@ void cpu_idle (void)
    if (__get_cpu_var(cpu_idle_state))
    __get_cpu_var(cpu_idle_state) = 0;

    + tick_nohz_stop_sched_tick();
    +
    check_pgt_cache();
    rmb();
    idle = pm_idle;
    @@ -228,6 +231,7 @@ void cpu_idle (void)
    __exit_idle();
    }

    + tick_nohz_restart_sched_tick();
    preempt_enable_no_resched();
    schedule();
    preempt_disable();
    --

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-06-10 11:43    [W:0.020 / U:121.812 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site