Files
linux/kernel
Josh Poimboeuf 20e1d4863b sched/debug: Rename 'schedstat_val()' -> 'schedstat_val_or_zero()'
The schedstat_val() macro's behavior is kind of surprising: when
schedstat is runtime disabled, it returns zero.  Rename it to
schedstat_val_or_zero().

There's also a need for a similar macro which doesn't have the 'if
(schedstat_enable())' check, to avoid doing the check twice.  Create a
new 'schedstat_val()' macro for that.

Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/3bb1d2367d041fee333b0dde17171e709395b675.1466184592.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <[email protected]>
2016-09-05 13:29:46 +02:00
..
2016-08-18 03:27:08 +02:00
2016-08-16 09:16:51 -06:00
…
…
2016-04-04 09:46:47 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2016-05-23 17:04:14 -07:00
…
…
2016-05-27 15:26:11 -07:00
…
…
2016-03-01 20:36:56 +01:00
…
…
…
…
…