diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-12-15 08:56:09 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-12-15 08:56:19 -0500 |
commit | 648616343cdbe904c585a6c12e323d3b3c72e46f (patch) | |
tree | 514bce1b52663db4ab5662b637c764cf3c2ed1eb /include/linux/sched.h | |
parent | 55b02d2f4445ad625213817a1736bf2884d32547 (diff) |
[S390] cputime: add sparse checking and cleanup
Make cputime_t and cputime64_t nocast to enable sparse checking to
detect incorrect use of cputime. Drop the cputime macros for simple
scalar operations. The conversion macros are still needed.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 1c4f3e9b9bc5..5649032d73fe 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -483,8 +483,8 @@ struct task_cputime { | |||
483 | 483 | ||
484 | #define INIT_CPUTIME \ | 484 | #define INIT_CPUTIME \ |
485 | (struct task_cputime) { \ | 485 | (struct task_cputime) { \ |
486 | .utime = cputime_zero, \ | 486 | .utime = 0, \ |
487 | .stime = cputime_zero, \ | 487 | .stime = 0, \ |
488 | .sum_exec_runtime = 0, \ | 488 | .sum_exec_runtime = 0, \ |
489 | } | 489 | } |
490 | 490 | ||