lkml.org 
[lkml]   [2012]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 05/24] cputime: Safely read cputime of full dynticks CPUs
From
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!


\
 
 \ /
  Last update: 2012-12-22 19:21    [W:0.057 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site