mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
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>
This commit is contained in:
parent
99c8b1ea09
commit
58135f574f
5 changed files with 15 additions and 11 deletions
|
@ -165,7 +165,7 @@ extern cpumask_var_t tick_nohz_full_mask;
|
|||
|
||||
static inline bool tick_nohz_full_enabled(void)
|
||||
{
|
||||
if (!static_key_false(&context_tracking_enabled))
|
||||
if (!context_tracking_is_enabled())
|
||||
return false;
|
||||
|
||||
return tick_nohz_full_running;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue