|
@@ -449,7 +449,7 @@ static void gic_cpu_if_up(struct gic_chip_data *gic)
|
|
|
}
|
|
|
|
|
|
|
|
|
-static void __init gic_dist_init(struct gic_chip_data *gic)
|
|
|
+static void gic_dist_init(struct gic_chip_data *gic)
|
|
|
{
|
|
|
unsigned int i;
|
|
|
u32 cpumask;
|
|
@@ -535,7 +535,7 @@ int gic_cpu_if_down(unsigned int gic_nr)
|
|
|
* this function, no interrupts will be delivered by the GIC, and another
|
|
|
* platform-specific wakeup source must be enabled.
|
|
|
*/
|
|
|
-static void gic_dist_save(struct gic_chip_data *gic)
|
|
|
+void gic_dist_save(struct gic_chip_data *gic)
|
|
|
{
|
|
|
unsigned int gic_irqs;
|
|
|
void __iomem *dist_base;
|
|
@@ -574,7 +574,7 @@ static void gic_dist_save(struct gic_chip_data *gic)
|
|
|
* handled normally, but any edge interrupts that occured will not be seen by
|
|
|
* the GIC and need to be handled by the platform-specific wakeup source.
|
|
|
*/
|
|
|
-static void gic_dist_restore(struct gic_chip_data *gic)
|
|
|
+void gic_dist_restore(struct gic_chip_data *gic)
|
|
|
{
|
|
|
unsigned int gic_irqs;
|
|
|
unsigned int i;
|
|
@@ -620,7 +620,7 @@ static void gic_dist_restore(struct gic_chip_data *gic)
|
|
|
writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL);
|
|
|
}
|
|
|
|
|
|
-static void gic_cpu_save(struct gic_chip_data *gic)
|
|
|
+void gic_cpu_save(struct gic_chip_data *gic)
|
|
|
{
|
|
|
int i;
|
|
|
u32 *ptr;
|
|
@@ -650,7 +650,7 @@ static void gic_cpu_save(struct gic_chip_data *gic)
|
|
|
|
|
|
}
|
|
|
|
|
|
-static void gic_cpu_restore(struct gic_chip_data *gic)
|
|
|
+void gic_cpu_restore(struct gic_chip_data *gic)
|
|
|
{
|
|
|
int i;
|
|
|
u32 *ptr;
|
|
@@ -727,7 +727,7 @@ static struct notifier_block gic_notifier_block = {
|
|
|
.notifier_call = gic_notifier,
|
|
|
};
|
|
|
|
|
|
-static int __init gic_pm_init(struct gic_chip_data *gic)
|
|
|
+static int gic_pm_init(struct gic_chip_data *gic)
|
|
|
{
|
|
|
gic->saved_ppi_enable = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4,
|
|
|
sizeof(u32));
|
|
@@ -757,7 +757,7 @@ free_ppi_enable:
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
#else
|
|
|
-static int __init gic_pm_init(struct gic_chip_data *gic)
|
|
|
+static int gic_pm_init(struct gic_chip_data *gic)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|