aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2013-02-25 11:25:39 -0500
committerFrederic Weisbecker <fweisbec@gmail.com>2013-03-07 11:10:32 -0500
commit9fbc42eac1f6917081dc3b39922b2f1c57fdff28 (patch)
tree9eef797db037ced359dc5abcc6945cfb8f303a09 /include
parentb22366cd54c6fe05db426f20adb10f461c19ec06 (diff)
cputime: Dynamically scale cputime for full dynticks accounting
The full dynticks cputime accounting is able to account either using the tick or the context tracking subsystem. This way the housekeeping CPU can keep the low overhead tick based solution. This latter mode has a low jiffies resolution granularity and need to be scaled against CFS precise runtime accounting to improve its result. We are doing this for CONFIG_TICK_CPU_ACCOUNTING, now we also need to expand it to full dynticks accounting dynamic off-case as well. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Kevin Hilman <khilman@linaro.org> Cc: Mats Liljegren <mats.liljegren@enea.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index d35d2b6ddbfb..8d1b6034d80b 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -570,7 +570,7 @@ struct signal_struct {
570 cputime_t utime, stime, cutime, cstime; 570 cputime_t utime, stime, cutime, cstime;
571 cputime_t gtime; 571 cputime_t gtime;
572 cputime_t cgtime; 572 cputime_t cgtime;
573#ifndef CONFIG_VIRT_CPU_ACCOUNTING 573#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
574 struct cputime prev_cputime; 574 struct cputime prev_cputime;
575#endif 575#endif
576 unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw; 576 unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw;
@@ -1327,7 +1327,7 @@ struct task_struct {
1327 1327
1328 cputime_t utime, stime, utimescaled, stimescaled; 1328 cputime_t utime, stime, utimescaled, stimescaled;
1329 cputime_t gtime; 1329 cputime_t gtime;
1330#ifndef CONFIG_VIRT_CPU_ACCOUNTING 1330#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
1331 struct cputime prev_cputime; 1331 struct cputime prev_cputime;
1332#endif 1332#endif
1333#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN 1333#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN