Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Frederic 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: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Tested-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>

authored by

Frederic Weisbecker and committed by
Paul E. McKenney
2a0aafce fe98db1c

+4 -4
+1 -1
include/linux/context_tracking.h
··· 11 11 12 12 13 13 #ifdef CONFIG_CONTEXT_TRACKING 14 - extern void context_tracking_cpu_set(int cpu); 14 + extern void ct_cpu_track_user(int cpu); 15 15 16 16 /* Called with interrupts disabled. */ 17 17 extern void __ct_user_enter(enum ctx_state state);
+2 -2
kernel/context_tracking.c
··· 228 228 } 229 229 NOKPROBE_SYMBOL(user_exit_callable); 230 230 231 - void __init context_tracking_cpu_set(int cpu) 231 + void __init ct_cpu_track_user(int cpu) 232 232 { 233 233 static __initdata bool initialized = false; 234 234 ··· 258 258 int cpu; 259 259 260 260 for_each_possible_cpu(cpu) 261 - context_tracking_cpu_set(cpu); 261 + ct_cpu_track_user(cpu); 262 262 } 263 263 #endif
+1 -1
kernel/time/tick-sched.c
··· 571 571 } 572 572 573 573 for_each_cpu(cpu, tick_nohz_full_mask) 574 - context_tracking_cpu_set(cpu); 574 + ct_cpu_track_user(cpu); 575 575 576 576 ret = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, 577 577 "kernel/nohz:predown", NULL,