diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-05-19 22:13:44 +0900 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-05-27 15:11:42 -0700 |
commit | 00d21d82b8a9e290286e09d8eedc20bfc33b0eee (patch) | |
tree | ed5b32a197ab4f7c8df059cb451b299c40a69ee9 /arch/ia64/kernel/paravirt.c | |
parent | 85cbc503787d577c215f9540c57294e1ec799144 (diff) |
[IA64] pvops: add to hooks, pv_time_ops, for steal time accounting.
Introduce pv_time_ops which adds hook to steal time accounting.
On virtualized environment, cpus are shared by many guests and
steal time is the time which is used for other guests.
On virtualized environtment, streal time should be accounted.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/paravirt.c')
-rw-r--r-- | arch/ia64/kernel/paravirt.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/ia64/kernel/paravirt.c b/arch/ia64/kernel/paravirt.c index ba5383be03c..afaf5b9a2cf 100644 --- a/arch/ia64/kernel/paravirt.c +++ b/arch/ia64/kernel/paravirt.c @@ -352,3 +352,18 @@ struct pv_irq_ops pv_irq_ops = { .resend_irq = ia64_native_resend_irq, }; + +/*************************************************************************** + * pv_time_ops + * time operations + */ + +static int +ia64_native_do_steal_accounting(unsigned long *new_itm) +{ + return 0; +} + +struct pv_time_ops pv_time_ops = { + .do_steal_accounting = ia64_native_do_steal_accounting, +}; |