Commit 2a0aafce authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Paul E. McKenney

context_tracking: Rename context_tracking_cpu_set() to ct_cpu_track_user()

context_tracking_cpu_set() is called in order to tell a CPU to track
user/kernel transitions. Since context tracking is going to expand in
to also track transitions from/to idle/IRQ/NMIs, the scope
of this function name becomes too broad and needs to be made more
specific. Also shorten the prefix to align with the new namespace.
Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Cc: Uladzislau Rezki <uladzislau.rezki@sony.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Nicolas Saenz Julienne <nsaenz@kernel.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Cc: Yu Liao <liaoyu15@huawei.com>
Cc: Phil Auld <pauld@redhat.com>
Cc: Paul Gortmaker<paul.gortmaker@windriver.com>
Cc: Alex Belits <abelits@marvell.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Reviewed-by: default avatarNicolas Saenz Julienne <nsaenzju@redhat.com>
Tested-by: default avatarNicolas Saenz Julienne <nsaenzju@redhat.com>
parent fe98db1c
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#ifdef CONFIG_CONTEXT_TRACKING #ifdef CONFIG_CONTEXT_TRACKING
extern void context_tracking_cpu_set(int cpu); extern void ct_cpu_track_user(int cpu);
/* Called with interrupts disabled. */ /* Called with interrupts disabled. */
extern void __ct_user_enter(enum ctx_state state); extern void __ct_user_enter(enum ctx_state state);
......
...@@ -228,7 +228,7 @@ void user_exit_callable(void) ...@@ -228,7 +228,7 @@ void user_exit_callable(void)
} }
NOKPROBE_SYMBOL(user_exit_callable); NOKPROBE_SYMBOL(user_exit_callable);
void __init context_tracking_cpu_set(int cpu) void __init ct_cpu_track_user(int cpu)
{ {
static __initdata bool initialized = false; static __initdata bool initialized = false;
...@@ -258,6 +258,6 @@ void __init context_tracking_init(void) ...@@ -258,6 +258,6 @@ void __init context_tracking_init(void)
int cpu; int cpu;
for_each_possible_cpu(cpu) for_each_possible_cpu(cpu)
context_tracking_cpu_set(cpu); ct_cpu_track_user(cpu);
} }
#endif #endif
...@@ -571,7 +571,7 @@ void __init tick_nohz_init(void) ...@@ -571,7 +571,7 @@ void __init tick_nohz_init(void)
} }
for_each_cpu(cpu, tick_nohz_full_mask) for_each_cpu(cpu, tick_nohz_full_mask)
context_tracking_cpu_set(cpu); ct_cpu_track_user(cpu);
ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
"kernel/nohz:predown", NULL, "kernel/nohz:predown", NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment