Messages in this thread | | | Date | Sat, 22 Dec 2012 18:51:29 +0100 | Subject | Re: [PATCH 05/24] cputime: Safely read cputime of full dynticks CPUs | From | Frederic Weisbecker <> |
| |
2012/12/21 Steven Rostedt <rostedt@goodmis.org>: > On Thu, 2012-12-20 at 19:32 +0100, Frederic Weisbecker wrote: > >> --- a/include/linux/init_task.h >> +++ b/include/linux/init_task.h >> @@ -10,6 +10,7 @@ >> #include <linux/pid_namespace.h> >> #include <linux/user_namespace.h> >> #include <linux/securebits.h> >> +#include <linux/seqlock.h> >> #include <net/net_namespace.h> >> >> #ifdef CONFIG_SMP >> @@ -141,6 +142,13 @@ extern struct task_group root_task_group; >> # define INIT_PERF_EVENTS(tsk) >> #endif >> >> +#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN >> +#define INIT_VTIME(tsk) \ >> + .vtime_seqlock = __SEQLOCK_UNLOCKED(tsk.vtime_seqlock), \ >> + .prev_jiffies = INITIAL_JIFFIES, /* CHECKME */ \ >> + .prev_jiffies_whence = JIFFIES_SYS, > > #else > # define INIT_VTIME(tsk) > #endif > > Otherwise it fails to compile when CONFIG_VIRT_CPU_ACCOUNTING_GEN is not > set.
Fixed for the next version, thanks!
| |