diff options
author | Kyle Huey <me@kylehuey.com> | 2024-04-13 07:16:16 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-04-14 22:26:32 +0200 |
commit | 4a013980666857c1eb2df6a2137817caa21d38a6 (patch) | |
tree | 408a10587956ff27b5c6b6eb904c2aced15421bb /kernel/events | |
parent | d0331aa9789707140e938d14629c200b32ae1d0f (diff) |
perf: Move perf_event_fasync() to perf_event.h
This will allow it to be called from perf_output_wakeup().
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240413141618.4160-2-khuey@kylehuey.com
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 6708c1121b9f..da9d9a1f4dca 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6703,14 +6703,6 @@ static const struct file_operations perf_fops = { * to user-space before waking everybody up. */ -static inline struct fasync_struct **perf_event_fasync(struct perf_event *event) -{ - /* only the parent has fasync state */ - if (event->parent) - event = event->parent; - return &event->fasync; -} - void perf_event_wakeup(struct perf_event *event) { ring_buffer_wakeup(event); |