[lkml]   [2005]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subjectfix cpufreq-ondemand by accounting skipped ticks as idle ticks [Was: [PATCH] i386 no idle HZ aka Dynticks 051203]
    Account ticks skipped dynamically as idle ticks.

    This allows the ondemand cpufreq governor to work correctly with dyntick.

    Signed-off-by: Dominik Brodowski <>

    Index: working-tree/arch/i386/kernel/dyn-tick.c
    --- working-tree.orig/arch/i386/kernel/dyn-tick.c
    +++ working-tree/arch/i386/kernel/dyn-tick.c
    @@ -19,6 +19,7 @@
    #include <linux/dyn-tick.h>
    #include <linux/timer.h>
    #include <linux/irq.h>
    +#include <linux/kernel_stat.h>
    #include <asm/apic.h>
    #include <asm/dyn-tick.h>

    @@ -109,6 +110,8 @@ void dyn_tick_interrupt(struct pt_regs *
    if (cpu_has_local_apic())
    + if (lost)
    + kstat_cpu(cpu).cpustat.idle += (lost - 1);
    cpu_clear(cpu, nohz_cpu_mask);
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2005-12-04 13:30    [W:0.019 / U:5.704 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site