diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-25 01:17:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-25 01:17:29 -0400 |
commit | 41660e9ac639c97840258d3c5294f618ca8cc46f (patch) | |
tree | 6284f3c320d8306ea7a10a7050bba0de1a79dd91 | |
parent | 881d021ab0d675f519b68df916fde969940ef988 (diff) |
sparc64: Allow chmc to be built as a module.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc64/Kconfig | 11 | ||||
-rw-r--r-- | arch/sparc64/kernel/Makefile | 3 | ||||
-rw-r--r-- | arch/sparc64/kernel/sparc64_ksyms.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/traps.c | 3 |
4 files changed, 17 insertions, 2 deletions
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index 489b6912fa09..8df73714caf1 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -191,6 +191,17 @@ config US2E_FREQ | |||
191 | 191 | ||
192 | If in doubt, say N. | 192 | If in doubt, say N. |
193 | 193 | ||
194 | config US3_MC | ||
195 | tristate "UltraSPARC-III Memory Controller driver" | ||
196 | default y | ||
197 | help | ||
198 | This adds a driver for the UltraSPARC-III memory controller. | ||
199 | Loading this driver allows exact mnemonic strings to be | ||
200 | printed in the event of a memory error, so that the faulty DIMM | ||
201 | on the motherboard can be matched to the error. | ||
202 | |||
203 | If in doubt, say Y, as this information can be very useful. | ||
204 | |||
194 | # Global things across all Sun machines. | 205 | # Global things across all Sun machines. |
195 | config GENERIC_LOCKBREAK | 206 | config GENERIC_LOCKBREAK |
196 | bool | 207 | bool |
diff --git a/arch/sparc64/kernel/Makefile b/arch/sparc64/kernel/Makefile index 418b5782096e..313735fa5f2c 100644 --- a/arch/sparc64/kernel/Makefile +++ b/arch/sparc64/kernel/Makefile | |||
@@ -11,7 +11,7 @@ obj-y := process.o setup.o cpu.o idprom.o \ | |||
11 | traps.o auxio.o una_asm.o sysfs.o iommu.o \ | 11 | traps.o auxio.o una_asm.o sysfs.o iommu.o \ |
12 | irq.o ptrace.o time.o sys_sparc.o signal.o \ | 12 | irq.o ptrace.o time.o sys_sparc.o signal.o \ |
13 | unaligned.o central.o pci.o starfire.o \ | 13 | unaligned.o central.o pci.o starfire.o \ |
14 | power.o sbus.o sparc64_ksyms.o chmc.o \ | 14 | power.o sbus.o sparc64_ksyms.o \ |
15 | visemul.o prom.o of_device.o hvapi.o sstate.o mdesc.o | 15 | visemul.o prom.o of_device.o hvapi.o sstate.o mdesc.o |
16 | 16 | ||
17 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o | 17 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
@@ -25,6 +25,7 @@ obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o | |||
25 | obj-$(CONFIG_MODULES) += module.o | 25 | obj-$(CONFIG_MODULES) += module.o |
26 | obj-$(CONFIG_US3_FREQ) += us3_cpufreq.o | 26 | obj-$(CONFIG_US3_FREQ) += us3_cpufreq.o |
27 | obj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o | 27 | obj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o |
28 | obj-$(CONFIG_US3_MC) += chmc.o | ||
28 | obj-$(CONFIG_KPROBES) += kprobes.o | 29 | obj-$(CONFIG_KPROBES) += kprobes.o |
29 | obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o | 30 | obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o |
30 | obj-$(CONFIG_AUDIT) += audit.o | 31 | obj-$(CONFIG_AUDIT) += audit.o |
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c index d44b2eeb25d5..3b2890c207f3 100644 --- a/arch/sparc64/kernel/sparc64_ksyms.c +++ b/arch/sparc64/kernel/sparc64_ksyms.c | |||
@@ -299,3 +299,5 @@ EXPORT_SYMBOL(xor_niagara_2); | |||
299 | EXPORT_SYMBOL(xor_niagara_3); | 299 | EXPORT_SYMBOL(xor_niagara_3); |
300 | EXPORT_SYMBOL(xor_niagara_4); | 300 | EXPORT_SYMBOL(xor_niagara_4); |
301 | EXPORT_SYMBOL(xor_niagara_5); | 301 | EXPORT_SYMBOL(xor_niagara_5); |
302 | |||
303 | EXPORT_SYMBOL_GPL(real_hard_smp_processor_id); | ||
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index 17880ccfa3cd..71644da6cad1 100644 --- a/arch/sparc64/kernel/traps.c +++ b/arch/sparc64/kernel/traps.c | |||
@@ -166,6 +166,7 @@ int register_dimm_printer(dimm_printer_t func) | |||
166 | 166 | ||
167 | return ret; | 167 | return ret; |
168 | } | 168 | } |
169 | EXPORT_SYMBOL_GPL(register_dimm_printer); | ||
169 | 170 | ||
170 | void unregister_dimm_printer(dimm_printer_t func) | 171 | void unregister_dimm_printer(dimm_printer_t func) |
171 | { | 172 | { |
@@ -176,7 +177,7 @@ void unregister_dimm_printer(dimm_printer_t func) | |||
176 | dimm_handler = NULL; | 177 | dimm_handler = NULL; |
177 | spin_unlock_irqrestore(&dimm_handler_lock, flags); | 178 | spin_unlock_irqrestore(&dimm_handler_lock, flags); |
178 | } | 179 | } |
179 | 180 | EXPORT_SYMBOL_GPL(unregister_dimm_printer); | |
180 | 181 | ||
181 | void spitfire_insn_access_exception(struct pt_regs *regs, unsigned long sfsr, unsigned long sfar) | 182 | void spitfire_insn_access_exception(struct pt_regs *regs, unsigned long sfsr, unsigned long sfar) |
182 | { | 183 | { |