Skip to content

Commit f25d8ba

Browse files
virtuosoIngo Molnar
authored andcommitted
perf/core: Reattach a misplaced comment
A comment is in a wrong place in perf_event_create_kernel_counter(). Fix that. Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 00496fe commit f25d8ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

kernel/events/core.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11331,10 +11331,6 @@ perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu,
1133111331
struct perf_event *event;
1133211332
int err;
1133311333

11334-
/*
11335-
* Get the target context (task or percpu):
11336-
*/
11337-
1133811334
event = perf_event_alloc(attr, cpu, task, NULL, NULL,
1133911335
overflow_handler, context, -1);
1134011336
if (IS_ERR(event)) {
@@ -11345,6 +11341,9 @@ perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu,
1134511341
/* Mark owner so we could distinguish it from user events. */
1134611342
event->owner = TASK_TOMBSTONE;
1134711343

11344+
/*
11345+
* Get the target context (task or percpu):
11346+
*/
1134811347
ctx = find_get_context(event->pmu, task, event);
1134911348
if (IS_ERR(ctx)) {
1135011349
err = PTR_ERR(ctx);

0 commit comments

Comments
 (0)