linux_dsm_epyc7002/arch/ia64/include/asm/xen
Frederic Weisbecker abf917cd91 cputime: Generic on-demand virtual cputime accounting
If we want to stop the tick further idle, we need to be
able to account the cputime without using the tick.

Virtual based cputime accounting solves that problem by
hooking into kernel/user boundaries.

However implementing CONFIG_VIRT_CPU_ACCOUNTING require
low level hooks and involves more overhead. But we already
have a generic context tracking subsystem that is required
for RCU needs by archs which plan to shut down the tick
outside idle.

This patch implements a generic virtual based cputime
accounting that relies on these generic kernel/user hooks.

There are some upsides of doing this:

- This requires no arch code to implement CONFIG_VIRT_CPU_ACCOUNTING
if context tracking is already built (already necessary for RCU in full
tickless mode).

- We can rely on the generic context tracking subsystem to dynamically
(de)activate the hooks, so that we can switch anytime between virtual
and tick based accounting. This way we don't have the overhead
of the virtual accounting when the tick is running periodically.

And one downside:

- There is probably more overhead than a native virtual based cputime
accounting. But this relies on hooks that are already set anyway.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
2013-01-27 19:23:27 +01:00
..
events.h xen: Remove unnecessary arch specific xen irq functions. 2010-02-18 17:17:58 -08:00
hypercall.h xen: ia64 build broken due to "xen: switch to new schedop hypercall by default." 2011-03-01 18:10:54 -05:00
hypervisor.h ia64/xen: compilation fix 2009-11-06 15:04:55 -08:00
inst.h ia64/pv_ops/xen/gate.S: xen gate page paravirtualization 2009-03-26 11:01:55 -07:00
interface.h xen/arm: Introduce xen_ulong_t for unsigned long 2012-09-14 13:34:43 +00:00
irq.h ia64/pv_ops/xen: define the nubmer of irqs which xen needs. 2008-10-17 10:06:59 -07:00
minstate.h cputime: Generic on-demand virtual cputime accounting 2013-01-27 19:23:27 +01:00
page.h ia64/xen: define helper functions for xen related address conversion. 2008-10-17 09:57:57 -07:00
patchlist.h ia64/pv_ops/xen: define xen specific gate page. 2009-03-26 10:51:12 -07:00
privop.h ia64: remove some warnings. 2009-03-27 11:11:04 -07:00
xcom_hcall.h ia64/xen: xencomm conversion functions for hypercalls 2008-10-17 10:00:19 -07:00
xencomm.h ia64/xen: xencomm conversion functions for hypercalls 2008-10-17 10:00:19 -07:00