summaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index fe71ce4e60f1..3705d9043c08 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1180,6 +1180,11 @@ static struct cpuhp_step cpuhp_bp_states[] = {
1180 .teardown = NULL, 1180 .teardown = NULL,
1181 .cant_stop = true, 1181 .cant_stop = true,
1182 }, 1182 },
1183 [CPUHP_PERF_PREPARE] = {
1184 .name = "perf prepare",
1185 .startup = perf_event_init_cpu,
1186 .teardown = perf_event_exit_cpu,
1187 },
1183 /* 1188 /*
1184 * Preparatory and dead notifiers. Will be replaced once the notifiers 1189 * Preparatory and dead notifiers. Will be replaced once the notifiers
1185 * are converted to states. 1190 * are converted to states.
@@ -1257,6 +1262,12 @@ static struct cpuhp_step cpuhp_ap_states[] = {
1257 .startup = smpboot_unpark_threads, 1262 .startup = smpboot_unpark_threads,
1258 .teardown = NULL, 1263 .teardown = NULL,
1259 }, 1264 },
1265 [CPUHP_AP_PERF_ONLINE] = {
1266 .name = "perf online",
1267 .startup = perf_event_init_cpu,
1268 .teardown = perf_event_exit_cpu,
1269 },
1270
1260 /* 1271 /*
1261 * Online/down_prepare notifiers. Will be removed once the notifiers 1272 * Online/down_prepare notifiers. Will be removed once the notifiers
1262 * are converted to states. 1273 * are converted to states.