aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-26 00:43:27 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-28 02:52:53 -0400
commit556626adf1dc1ee88183b7ba267912b87b063a57 (patch)
tree3a6ccedc5206083cba4980604ce3aa206737dc6d /arch/sparc
parent3732106a1a565a592966290fbcef322db9933f91 (diff)
sparc32,leon: always include leon_pmc in build
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Konrad Eisele <konrad@gaisler.com>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/kernel/Makefile2
-rw-r--r--arch/sparc/kernel/leon_pmc.c15
2 files changed, 10 insertions, 7 deletions
diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile
index 43af0d619a3a..6cf591b7e1c6 100644
--- a/arch/sparc/kernel/Makefile
+++ b/arch/sparc/kernel/Makefile
@@ -52,7 +52,7 @@ obj-y += of_device_$(BITS).o
52obj-$(CONFIG_SPARC64) += prom_irqtrans.o 52obj-$(CONFIG_SPARC64) += prom_irqtrans.o
53 53
54obj-$(CONFIG_SPARC32) += leon_kernel.o 54obj-$(CONFIG_SPARC32) += leon_kernel.o
55obj-$(CONFIG_SPARC_LEON)+= leon_pmc.o 55obj-$(CONFIG_SPARC32) += leon_pmc.o
56 56
57obj-$(CONFIG_SPARC64) += reboot.o 57obj-$(CONFIG_SPARC64) += reboot.o
58obj-$(CONFIG_SPARC64) += sysfs.o 58obj-$(CONFIG_SPARC64) += sysfs.o
diff --git a/arch/sparc/kernel/leon_pmc.c b/arch/sparc/kernel/leon_pmc.c
index 519ca923f59f..4e174321097d 100644
--- a/arch/sparc/kernel/leon_pmc.c
+++ b/arch/sparc/kernel/leon_pmc.c
@@ -7,6 +7,7 @@
7#include <linux/pm.h> 7#include <linux/pm.h>
8 8
9#include <asm/leon_amba.h> 9#include <asm/leon_amba.h>
10#include <asm/cpu_type.h>
10#include <asm/leon.h> 11#include <asm/leon.h>
11 12
12/* List of Systems that need fixup instructions around power-down instruction */ 13/* List of Systems that need fixup instructions around power-down instruction */
@@ -65,13 +66,15 @@ void pmc_leon_idle(void)
65/* Install LEON Power Down function */ 66/* Install LEON Power Down function */
66static int __init leon_pmc_install(void) 67static int __init leon_pmc_install(void)
67{ 68{
68 /* Assign power management IDLE handler */ 69 if (sparc_cpu_model == sparc_leon) {
69 if (pmc_leon_need_fixup()) 70 /* Assign power management IDLE handler */
70 pm_idle = pmc_leon_idle_fixup; 71 if (pmc_leon_need_fixup())
71 else 72 pm_idle = pmc_leon_idle_fixup;
72 pm_idle = pmc_leon_idle; 73 else
74 pm_idle = pmc_leon_idle;
73 75
74 printk(KERN_INFO "leon: power management initialized\n"); 76 printk(KERN_INFO "leon: power management initialized\n");
77 }
75 78
76 return 0; 79 return 0;
77} 80}