aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-31 11:51:56 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-03-31 11:51:56 +0100
commit964fae8ac2fa6732856179a2532b0914dba5e4bb (patch)
tree07d0e3081a6d82b97c3dda3204d44d7a2e990db9 /xen/include/xen/sched-if.h
parentf02c18fff786578ae73581e8d329d2d2e91e7142 (diff)
downloadxen-964fae8ac2fa6732856179a2532b0914dba5e4bb.tar.gz
xen-964fae8ac2fa6732856179a2532b0914dba5e4bb.tar.bz2
xen-964fae8ac2fa6732856179a2532b0914dba5e4bb.zip
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>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index f6ba9faa5c..5caf8245d2 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -77,6 +77,9 @@ struct scheduler {
struct xen_domctl_scheduler_op *);
void (*dump_settings) (void);
void (*dump_cpu_state) (int);
+
+ void (*tick_suspend) (void);
+ void (*tick_resume) (void);
};
#endif /* __XEN_SCHED_IF_H__ */