diff options
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/ftrace.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/leon_pci.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/leon_pci_grpci2.c | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/sun4m_irq.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sysfs.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/time_64.c | 5 |
6 files changed, 11 insertions, 14 deletions
diff --git a/arch/sparc/kernel/ftrace.c b/arch/sparc/kernel/ftrace.c index 03ab022e51c5..0a2d2ddff543 100644 --- a/arch/sparc/kernel/ftrace.c +++ b/arch/sparc/kernel/ftrace.c | |||
@@ -82,12 +82,8 @@ int ftrace_update_ftrace_func(ftrace_func_t func) | |||
82 | return ftrace_modify_code(ip, old, new); | 82 | return ftrace_modify_code(ip, old, new); |
83 | } | 83 | } |
84 | 84 | ||
85 | int __init ftrace_dyn_arch_init(void *data) | 85 | int __init ftrace_dyn_arch_init(void) |
86 | { | 86 | { |
87 | unsigned long *p = data; | ||
88 | |||
89 | *p = 0; | ||
90 | |||
91 | return 0; | 87 | return 0; |
92 | } | 88 | } |
93 | #endif | 89 | #endif |
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c index 88aaaa57bb64..e16c4157e1ae 100644 --- a/arch/sparc/kernel/leon_pci.c +++ b/arch/sparc/kernel/leon_pci.c | |||
@@ -99,11 +99,6 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res, | |||
99 | return res->start; | 99 | return res->start; |
100 | } | 100 | } |
101 | 101 | ||
102 | int pcibios_enable_device(struct pci_dev *dev, int mask) | ||
103 | { | ||
104 | return pci_enable_resources(dev, mask); | ||
105 | } | ||
106 | |||
107 | /* in/out routines taken from pcic.c | 102 | /* in/out routines taken from pcic.c |
108 | * | 103 | * |
109 | * This probably belongs here rather than ioport.c because | 104 | * This probably belongs here rather than ioport.c because |
diff --git a/arch/sparc/kernel/leon_pci_grpci2.c b/arch/sparc/kernel/leon_pci_grpci2.c index 5f0402aab7fb..24d6a4446349 100644 --- a/arch/sparc/kernel/leon_pci_grpci2.c +++ b/arch/sparc/kernel/leon_pci_grpci2.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <linux/of_device.h> | 8 | #include <linux/of_device.h> |
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
10 | #include <linux/pci.h> | 10 | #include <linux/pci.h> |
11 | #include <linux/slab.h> | ||
11 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
12 | #include <linux/export.h> | 13 | #include <linux/export.h> |
13 | #include <asm/io.h> | 14 | #include <asm/io.h> |
diff --git a/arch/sparc/kernel/sun4m_irq.c b/arch/sparc/kernel/sun4m_irq.c index c5ade9d27a1d..8bb3b3fddea7 100644 --- a/arch/sparc/kernel/sun4m_irq.c +++ b/arch/sparc/kernel/sun4m_irq.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * Copyright (C) 1996 Dave Redman (djhr@tadpole.co.uk) | 9 | * Copyright (C) 1996 Dave Redman (djhr@tadpole.co.uk) |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/slab.h> | ||
13 | |||
12 | #include <asm/timer.h> | 14 | #include <asm/timer.h> |
13 | #include <asm/traps.h> | 15 | #include <asm/traps.h> |
14 | #include <asm/pgalloc.h> | 16 | #include <asm/pgalloc.h> |
diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c index c21c673e5f7c..a364000ca1aa 100644 --- a/arch/sparc/kernel/sysfs.c +++ b/arch/sparc/kernel/sysfs.c | |||
@@ -300,7 +300,7 @@ static int __init topology_init(void) | |||
300 | 300 | ||
301 | check_mmu_stats(); | 301 | check_mmu_stats(); |
302 | 302 | ||
303 | register_cpu_notifier(&sysfs_cpu_nb); | 303 | cpu_notifier_register_begin(); |
304 | 304 | ||
305 | for_each_possible_cpu(cpu) { | 305 | for_each_possible_cpu(cpu) { |
306 | struct cpu *c = &per_cpu(cpu_devices, cpu); | 306 | struct cpu *c = &per_cpu(cpu_devices, cpu); |
@@ -310,6 +310,10 @@ static int __init topology_init(void) | |||
310 | register_cpu_online(cpu); | 310 | register_cpu_online(cpu); |
311 | } | 311 | } |
312 | 312 | ||
313 | __register_cpu_notifier(&sysfs_cpu_nb); | ||
314 | |||
315 | cpu_notifier_register_done(); | ||
316 | |||
313 | return 0; | 317 | return 0; |
314 | } | 318 | } |
315 | 319 | ||
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c index c3d82b5f54ca..3fddf64c7fc6 100644 --- a/arch/sparc/kernel/time_64.c +++ b/arch/sparc/kernel/time_64.c | |||
@@ -659,8 +659,7 @@ static int sparc64_cpufreq_notifier(struct notifier_block *nb, unsigned long val | |||
659 | ft->clock_tick_ref = cpu_data(cpu).clock_tick; | 659 | ft->clock_tick_ref = cpu_data(cpu).clock_tick; |
660 | } | 660 | } |
661 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || | 661 | if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || |
662 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new) || | 662 | (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { |
663 | (val == CPUFREQ_RESUMECHANGE)) { | ||
664 | cpu_data(cpu).clock_tick = | 663 | cpu_data(cpu).clock_tick = |
665 | cpufreq_scale(ft->clock_tick_ref, | 664 | cpufreq_scale(ft->clock_tick_ref, |
666 | ft->ref_freq, | 665 | ft->ref_freq, |
@@ -733,7 +732,7 @@ void __irq_entry timer_interrupt(int irq, struct pt_regs *regs) | |||
733 | irq_enter(); | 732 | irq_enter(); |
734 | 733 | ||
735 | local_cpu_data().irq0_irqs++; | 734 | local_cpu_data().irq0_irqs++; |
736 | kstat_incr_irqs_this_cpu(0, irq_to_desc(0)); | 735 | kstat_incr_irq_this_cpu(0); |
737 | 736 | ||
738 | if (unlikely(!evt->event_handler)) { | 737 | if (unlikely(!evt->event_handler)) { |
739 | printk(KERN_WARNING | 738 | printk(KERN_WARNING |