Re: [PATCH 05/24] cputime: Safely read cputime of full dynticks CPUs

From: Frederic Weisbecker
Date: Sat Dec 22 2012 - 12:51:20 EST


2012/12/21 Steven Rostedt <rostedt@xxxxxxxxxxx>:
> 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!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/