Skip to content

Commit a574e7f

Browse files
committed
fgraph: Change the name of cpuhp state to "fgraph:online"
The cpuhp state name given to cpuhp_setup_state() is "fgraph_idle_init" which doesn't really conform to the names that are used for cpu hotplug setups. Instead rename it to "fgraph:online" to be in line with other states. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/20241024222944.473d88c5@rorschach.local.home Suggested-by: Masami Hiramatsu <mhiramat@kernel.org> Fixes: 2c02f73 ("fgraph: Use CPU hotplug mechanism to initialize idle shadow stacks") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent bd3734d commit a574e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/fgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ int register_ftrace_graph(struct fgraph_ops *gops)
12551255
guard(mutex)(&ftrace_lock);
12561256

12571257
if (!fgraph_initialized) {
1258-
ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "fgraph_idle_init",
1258+
ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "fgraph:online",
12591259
fgraph_cpu_init, NULL);
12601260
if (ret < 0) {
12611261
pr_warn("fgraph: Error to init cpu hotplug support\n");

0 commit comments

Comments
 (0)