diff options
author | Mischa Jonker <Mischa.Jonker@synopsys.com> | 2013-06-04 05:45:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-19 06:50:23 -0400 |
commit | 03d8e80beb7db78a13c192431205b9c83f7e0cd1 (patch) | |
tree | 5d2ddf31ec6ee0a39e6ff1d53593889e1af3aa4e /kernel/events/core.c | |
parent | e712209a9e0b70e78b13847738eb66fe37412515 (diff) |
perf: Add const qualifier to perf_pmu_register's 'name' arg
This allows us to use pdev->name for registering a PMU device.
IMO the name is not supposed to be changed anyway.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1370339148-5566-1-git-send-email-mjonker@synopsys.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events/core.c')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index aca95bce34c8..9c8920783317 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -6179,7 +6179,7 @@ free_dev: | |||
6179 | static struct lock_class_key cpuctx_mutex; | 6179 | static struct lock_class_key cpuctx_mutex; |
6180 | static struct lock_class_key cpuctx_lock; | 6180 | static struct lock_class_key cpuctx_lock; |
6181 | 6181 | ||
6182 | int perf_pmu_register(struct pmu *pmu, char *name, int type) | 6182 | int perf_pmu_register(struct pmu *pmu, const char *name, int type) |
6183 | { | 6183 | { |
6184 | int cpu, ret; | 6184 | int cpu, ret; |
6185 | 6185 | ||