diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-04-15 06:14:38 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 05:16:58 -0400 |
commit | a6c93afed38c242ccf4ec5bcb5ff26ff2521cf36 (patch) | |
tree | e99c2b3f3d03df77d497907afff9b7310b772fd1 /arch/arm/kernel/perf_event_v6.c | |
parent | 90e93648c41bd29a72f6ec55ce27a23c209eab8c (diff) |
ARM: perf: de-const struct arm_pmu
This patch removes const qualifiers from instances of struct arm_pmu,
and functions initialising them, in preparation for generalising
arm_pmu usage to system (AKA uncore) PMUs.
This will allow for dynamically modifiable structures (locks,
struct pmu) to be added as members of struct arm_pmu.
Acked-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_v6.c')
-rw-r--r-- | arch/arm/kernel/perf_event_v6.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/kernel/perf_event_v6.c b/arch/arm/kernel/perf_event_v6.c index dd7f3b9f4cb3..d1abe97ae08a 100644 --- a/arch/arm/kernel/perf_event_v6.c +++ b/arch/arm/kernel/perf_event_v6.c | |||
@@ -635,7 +635,7 @@ armv6mpcore_pmu_disable_event(struct hw_perf_event *hwc, | |||
635 | raw_spin_unlock_irqrestore(&pmu_lock, flags); | 635 | raw_spin_unlock_irqrestore(&pmu_lock, flags); |
636 | } | 636 | } |
637 | 637 | ||
638 | static const struct arm_pmu armv6pmu = { | 638 | static struct arm_pmu armv6pmu = { |
639 | .id = ARM_PERF_PMU_ID_V6, | 639 | .id = ARM_PERF_PMU_ID_V6, |
640 | .name = "v6", | 640 | .name = "v6", |
641 | .handle_irq = armv6pmu_handle_irq, | 641 | .handle_irq = armv6pmu_handle_irq, |
@@ -653,7 +653,7 @@ static const struct arm_pmu armv6pmu = { | |||
653 | .max_period = (1LLU << 32) - 1, | 653 | .max_period = (1LLU << 32) - 1, |
654 | }; | 654 | }; |
655 | 655 | ||
656 | static const struct arm_pmu *__init armv6pmu_init(void) | 656 | static struct arm_pmu *__init armv6pmu_init(void) |
657 | { | 657 | { |
658 | return &armv6pmu; | 658 | return &armv6pmu; |
659 | } | 659 | } |
@@ -665,7 +665,7 @@ static const struct arm_pmu *__init armv6pmu_init(void) | |||
665 | * disable the interrupt reporting and update the event. When unthrottling we | 665 | * disable the interrupt reporting and update the event. When unthrottling we |
666 | * reset the period and enable the interrupt reporting. | 666 | * reset the period and enable the interrupt reporting. |
667 | */ | 667 | */ |
668 | static const struct arm_pmu armv6mpcore_pmu = { | 668 | static struct arm_pmu armv6mpcore_pmu = { |
669 | .id = ARM_PERF_PMU_ID_V6MP, | 669 | .id = ARM_PERF_PMU_ID_V6MP, |
670 | .name = "v6mpcore", | 670 | .name = "v6mpcore", |
671 | .handle_irq = armv6pmu_handle_irq, | 671 | .handle_irq = armv6pmu_handle_irq, |
@@ -683,17 +683,17 @@ static const struct arm_pmu armv6mpcore_pmu = { | |||
683 | .max_period = (1LLU << 32) - 1, | 683 | .max_period = (1LLU << 32) - 1, |
684 | }; | 684 | }; |
685 | 685 | ||
686 | static const struct arm_pmu *__init armv6mpcore_pmu_init(void) | 686 | static struct arm_pmu *__init armv6mpcore_pmu_init(void) |
687 | { | 687 | { |
688 | return &armv6mpcore_pmu; | 688 | return &armv6mpcore_pmu; |
689 | } | 689 | } |
690 | #else | 690 | #else |
691 | static const struct arm_pmu *__init armv6pmu_init(void) | 691 | static struct arm_pmu *__init armv6pmu_init(void) |
692 | { | 692 | { |
693 | return NULL; | 693 | return NULL; |
694 | } | 694 | } |
695 | 695 | ||
696 | static const struct arm_pmu *__init armv6mpcore_pmu_init(void) | 696 | static struct arm_pmu *__init armv6mpcore_pmu_init(void) |
697 | { | 697 | { |
698 | return NULL; | 698 | return NULL; |
699 | } | 699 | } |