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 /include/linux/perf_event.h | |
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 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 74a4e14ab60b..4bc57d017fc8 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -188,7 +188,7 @@ struct pmu { | |||
188 | 188 | ||
189 | struct device *dev; | 189 | struct device *dev; |
190 | const struct attribute_group **attr_groups; | 190 | const struct attribute_group **attr_groups; |
191 | char *name; | 191 | const char *name; |
192 | int type; | 192 | int type; |
193 | 193 | ||
194 | int * __percpu pmu_disable_count; | 194 | int * __percpu pmu_disable_count; |
@@ -519,7 +519,7 @@ struct perf_output_handle { | |||
519 | 519 | ||
520 | #ifdef CONFIG_PERF_EVENTS | 520 | #ifdef CONFIG_PERF_EVENTS |
521 | 521 | ||
522 | extern int perf_pmu_register(struct pmu *pmu, char *name, int type); | 522 | extern int perf_pmu_register(struct pmu *pmu, const char *name, int type); |
523 | extern void perf_pmu_unregister(struct pmu *pmu); | 523 | extern void perf_pmu_unregister(struct pmu *pmu); |
524 | 524 | ||
525 | extern int perf_num_counters(void); | 525 | extern int perf_num_counters(void); |