diff options
author | 2013-11-06 14:45:57 +0100 | |
---|---|---|
committer | 2013-12-02 20:43:14 +0100 | |
commit | 58135f574f1b791c926622387780ed3d090116d6 (patch) | |
tree | dc6c361777cd0f1bf051dbbddeccb7942400951d /include/linux/vtime.h | |
parent | trivial: fix spelling in CONTEXT_TRACKING_FORCE help text (diff) | |
download | linux-58135f574f1b791c926622387780ed3d090116d6.tar.gz linux-58135f574f1b791c926622387780ed3d090116d6.tar.bz2 linux-58135f574f1b791c926622387780ed3d090116d6.zip |
context_tracking: Wrap static key check into more intuitive function name
Use a function with a meaningful name to check the global context
tracking state. static_key_false() is a bit confusing for reviewers.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/vtime.h')
-rw-r--r-- | include/linux/vtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vtime.h b/include/linux/vtime.h index f5b72b364bda..807c732cbf29 100644 --- a/include/linux/vtime.h +++ b/include/linux/vtime.h @@ -19,7 +19,7 @@ static inline bool vtime_accounting_enabled(void) { return true; } #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN static inline bool vtime_accounting_enabled(void) { - if (static_key_false(&context_tracking_enabled)) { + if (context_tracking_is_enabled()) { if (context_tracking_active()) return true; } |