path: root/kernel/fork.c
diff options
authorJason Low <>2015-10-14 12:07:55 -0700
committerThomas Gleixner <>2015-10-15 11:23:41 +0200
commitd5c373eb5610686162ff50429f63f4c00c554799 (patch)
tree1016ff693cfd585fdab1d368995f16036c9ec65c /kernel/fork.c
parent934715a191e4be0c602d39455a7a74316f274d60 (diff)
posix_cpu_timer: Convert cputimer->running to bool
In the next patch in this series, a new field 'checking_timer' will be added to 'struct thread_group_cputimer'. Both this and the existing 'running' integer field are just used as boolean values. To save space in the structure, we can make both of these fields booleans. This is a preparatory patch to convert the existing running integer field to a boolean. Suggested-by: George Spelvin <> Signed-off-by: Jason Low <> Reviewed: George Spelvin <> Cc: Oleg Nesterov <> Cc: Paul E. McKenney <> Cc: Frederic Weisbecker <> Cc: Davidlohr Bueso <> Cc: Steven Rostedt <> Cc: Cc: Cc: Cc: Peter Zijlstra <> Link: Signed-off-by: Thomas Gleixner <>
Diffstat (limited to 'kernel/fork.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 2845623fb582..6ac894244d39 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1101,7 +1101,7 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig)
cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur);
if (cpu_limit != RLIM_INFINITY) {
sig->cputime_expires.prof_exp = secs_to_cputime(cpu_limit);
- sig->cputimer.running = 1;
+ sig->cputimer.running = true;
/* The timer lists. */