]> xenbits.xensource.com Git - people/royger/xen.git/commit
cpuidle: suspend/resume scheduler tick timer during cpu idle state entry/exit
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:51:56 +0000 (11:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:51:56 +0000 (11:51 +0100)
commit964fae8ac2fa6732856179a2532b0914dba5e4bb
tree07d0e3081a6d82b97c3dda3204d44d7a2e990db9
parentf02c18fff786578ae73581e8d329d2d2e91e7142
cpuidle: suspend/resume scheduler tick timer during cpu idle state entry/exit

cpuidle can collaborate with scheduler to reduce unnecessary timer
interrupt. For example, credit scheduler accounting timer
doesn't need to be active at idle time, so it can be stopped at
cpuidle entry and resumed at cpuidle exit. This patch implements this
function by adding two ops in scheduler: tick_suspend/tick_resume, and
implement them for credit scheduler

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
xen/arch/x86/acpi/cpu_idle.c
xen/common/sched_credit.c
xen/common/schedule.c
xen/include/xen/sched-if.h
xen/include/xen/sched.h