|
@@ -635,7 +635,7 @@ armv6mpcore_pmu_disable_event(struct hw_perf_event *hwc,
|
|
raw_spin_unlock_irqrestore(&pmu_lock, flags);
|
|
raw_spin_unlock_irqrestore(&pmu_lock, flags);
|
|
}
|
|
}
|
|
|
|
|
|
-static const struct arm_pmu armv6pmu = {
|
|
|
|
|
|
+static struct arm_pmu armv6pmu = {
|
|
.id = ARM_PERF_PMU_ID_V6,
|
|
.id = ARM_PERF_PMU_ID_V6,
|
|
.name = "v6",
|
|
.name = "v6",
|
|
.handle_irq = armv6pmu_handle_irq,
|
|
.handle_irq = armv6pmu_handle_irq,
|
|
@@ -653,7 +653,7 @@ static const struct arm_pmu armv6pmu = {
|
|
.max_period = (1LLU << 32) - 1,
|
|
.max_period = (1LLU << 32) - 1,
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct arm_pmu *__init armv6pmu_init(void)
|
|
|
|
|
|
+static struct arm_pmu *__init armv6pmu_init(void)
|
|
{
|
|
{
|
|
return &armv6pmu;
|
|
return &armv6pmu;
|
|
}
|
|
}
|
|
@@ -665,7 +665,7 @@ static const struct arm_pmu *__init armv6pmu_init(void)
|
|
* disable the interrupt reporting and update the event. When unthrottling we
|
|
* disable the interrupt reporting and update the event. When unthrottling we
|
|
* reset the period and enable the interrupt reporting.
|
|
* reset the period and enable the interrupt reporting.
|
|
*/
|
|
*/
|
|
-static const struct arm_pmu armv6mpcore_pmu = {
|
|
|
|
|
|
+static struct arm_pmu armv6mpcore_pmu = {
|
|
.id = ARM_PERF_PMU_ID_V6MP,
|
|
.id = ARM_PERF_PMU_ID_V6MP,
|
|
.name = "v6mpcore",
|
|
.name = "v6mpcore",
|
|
.handle_irq = armv6pmu_handle_irq,
|
|
.handle_irq = armv6pmu_handle_irq,
|
|
@@ -683,17 +683,17 @@ static const struct arm_pmu armv6mpcore_pmu = {
|
|
.max_period = (1LLU << 32) - 1,
|
|
.max_period = (1LLU << 32) - 1,
|
|
};
|
|
};
|
|
|
|
|
|
-static const struct arm_pmu *__init armv6mpcore_pmu_init(void)
|
|
|
|
|
|
+static struct arm_pmu *__init armv6mpcore_pmu_init(void)
|
|
{
|
|
{
|
|
return &armv6mpcore_pmu;
|
|
return &armv6mpcore_pmu;
|
|
}
|
|
}
|
|
#else
|
|
#else
|
|
-static const struct arm_pmu *__init armv6pmu_init(void)
|
|
|
|
|
|
+static struct arm_pmu *__init armv6pmu_init(void)
|
|
{
|
|
{
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
-static const struct arm_pmu *__init armv6mpcore_pmu_init(void)
|
|
|
|
|
|
+static struct arm_pmu *__init armv6mpcore_pmu_init(void)
|
|
{
|
|
{
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|