diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2023-07-21 11:06:07 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-10-05 10:26:50 +0200 |
commit | e6814ec3ba1994561db9b1c05a80227d30cc18fa (patch) | |
tree | c4a652327c65502e48f9760e31e5226498126d90 /kernel/events | |
parent | perf/x86/rapl: Fix "Using plain integer as NULL pointer" Sparse warning (diff) | |
download | linux-e6814ec3ba1994561db9b1c05a80227d30cc18fa.tar.xz linux-e6814ec3ba1994561db9b1c05a80227d30cc18fa.zip |
perf/core: Rename perf_proc_update_handler() -> perf_event_max_sample_rate_handler(), for readability
Follow the naming pattern of the other sysctl handlers in perf.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230721090607.172002-1-xiujianfeng@huawei.com
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 4c72a41f11af..af569196d760 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -449,8 +449,8 @@ static void update_perf_cpu_limits(void) static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc); -int perf_proc_update_handler(struct ctl_table *table, int write, - void *buffer, size_t *lenp, loff_t *ppos) +int perf_event_max_sample_rate_handler(struct ctl_table *table, int write, + void *buffer, size_t *lenp, loff_t *ppos) { int ret; int perf_cpu = sysctl_perf_cpu_time_max_percent; |