context_tracking: Rename context_tracking_cpu_set() to ct_cpu_track_user()
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 8 Jun 2022 14:40:23 +0000 (16:40 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 30 Jun 2022 00:04:09 +0000 (17:04 -0700)
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>
include/linux/context_tracking.h
kernel/context_tracking.c
kernel/time/tick-sched.c

index 7a5f04ae1758fe348410b731f1e6124ed81c398c..63259fece7c7683bb1e3f11e36f2b69e169ffdd6 100644 (file)
@@ -11,7 +11,7 @@
 
 
 #ifdef CONFIG_CONTEXT_TRACKING
-extern void context_tracking_cpu_set(int cpu);
+extern void ct_cpu_track_user(int cpu);
 
 /* Called with interrupts disabled.  */
 extern void __ct_user_enter(enum ctx_state state);
index 590c920ad57f5ba8bc472b1c53f10830e594d107..d361bd52e4e1302818361f76dba1b24ca8b0f038 100644 (file)
@@ -228,7 +228,7 @@ void user_exit_callable(void)
 }
 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;
 
@@ -258,6 +258,6 @@ void __init context_tracking_init(void)
        int cpu;
 
        for_each_possible_cpu(cpu)
-               context_tracking_cpu_set(cpu);
+               ct_cpu_track_user(cpu);
 }
 #endif
index 58a11f859ac79d7ea92d52a4e0d235201b0c65ac..de192dcff828287053505f093234e072cdb5566d 100644 (file)
@@ -571,7 +571,7 @@ void __init tick_nohz_init(void)
        }
 
        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,
                                        "kernel/nohz:predown", NULL,