diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-29 08:46:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-29 08:47:05 -0400 |
commit | e7fd5d4b3d240f42c30a9e3d20a4689c4d3a795a (patch) | |
tree | 4ba588631dd8189a818a91c9e3976526071178b6 /arch/powerpc/kernel | |
parent | 1130b0296184bc21806225fd06d533515a99d2db (diff) | |
parent | 56a50adda49b2020156616c4eb15353e0f9ad7de (diff) |
Merge branch 'linus' into perfcounters/core
Merge reason: This brach was on -rc1, refresh it to almost-rc4 to pick up
the latest upstream fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_40x.S | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_44x.S | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_8xx.S | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_fsl_booke.S | 3 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom_parse.c | 11 | ||||
-rw-r--r-- | arch/powerpc/kernel/time.c | 8 | ||||
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 5 |
8 files changed, 22 insertions, 17 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index 54e68c11ae15..c01467f952d3 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -21,6 +21,7 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <linux/init.h> | ||
24 | #include <asm/reg.h> | 25 | #include <asm/reg.h> |
25 | #include <asm/page.h> | 26 | #include <asm/page.h> |
26 | #include <asm/mmu.h> | 27 | #include <asm/mmu.h> |
@@ -50,7 +51,7 @@ | |||
50 | mtspr SPRN_DBAT##n##L,RB; \ | 51 | mtspr SPRN_DBAT##n##L,RB; \ |
51 | 1: | 52 | 1: |
52 | 53 | ||
53 | .section .text.head, "ax" | 54 | __HEAD |
54 | .stabs "arch/powerpc/kernel/",N_SO,0,0,0f | 55 | .stabs "arch/powerpc/kernel/",N_SO,0,0,0f |
55 | .stabs "head_32.S",N_SO,0,0,0f | 56 | .stabs "head_32.S",N_SO,0,0,0f |
56 | 0: | 57 | 0: |
diff --git a/arch/powerpc/kernel/head_40x.S b/arch/powerpc/kernel/head_40x.S index 56d8e5d90c5b..0c96911d4299 100644 --- a/arch/powerpc/kernel/head_40x.S +++ b/arch/powerpc/kernel/head_40x.S | |||
@@ -31,6 +31,7 @@ | |||
31 | * | 31 | * |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/init.h> | ||
34 | #include <asm/processor.h> | 35 | #include <asm/processor.h> |
35 | #include <asm/page.h> | 36 | #include <asm/page.h> |
36 | #include <asm/mmu.h> | 37 | #include <asm/mmu.h> |
@@ -52,7 +53,7 @@ | |||
52 | * | 53 | * |
53 | * This is all going to change RSN when we add bi_recs....... -- Dan | 54 | * This is all going to change RSN when we add bi_recs....... -- Dan |
54 | */ | 55 | */ |
55 | .section .text.head, "ax" | 56 | __HEAD |
56 | _ENTRY(_stext); | 57 | _ENTRY(_stext); |
57 | _ENTRY(_start); | 58 | _ENTRY(_start); |
58 | 59 | ||
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index b56fecc93a16..18d8a1677c4d 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -28,6 +28,7 @@ | |||
28 | * option) any later version. | 28 | * option) any later version. |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <linux/init.h> | ||
31 | #include <asm/processor.h> | 32 | #include <asm/processor.h> |
32 | #include <asm/page.h> | 33 | #include <asm/page.h> |
33 | #include <asm/mmu.h> | 34 | #include <asm/mmu.h> |
@@ -50,7 +51,7 @@ | |||
50 | * r7 - End of kernel command line string | 51 | * r7 - End of kernel command line string |
51 | * | 52 | * |
52 | */ | 53 | */ |
53 | .section .text.head, "ax" | 54 | __HEAD |
54 | _ENTRY(_stext); | 55 | _ENTRY(_stext); |
55 | _ENTRY(_start); | 56 | _ENTRY(_start); |
56 | /* | 57 | /* |
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 3c9452d4308b..52ff8c53b93c 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/arch/powerpc/kernel/head_8xx.S | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/init.h> | ||
22 | #include <asm/processor.h> | 23 | #include <asm/processor.h> |
23 | #include <asm/page.h> | 24 | #include <asm/page.h> |
24 | #include <asm/mmu.h> | 25 | #include <asm/mmu.h> |
@@ -38,7 +39,7 @@ | |||
38 | #else | 39 | #else |
39 | #define DO_8xx_CPU6(val, reg) | 40 | #define DO_8xx_CPU6(val, reg) |
40 | #endif | 41 | #endif |
41 | .section .text.head, "ax" | 42 | __HEAD |
42 | _ENTRY(_stext); | 43 | _ENTRY(_stext); |
43 | _ENTRY(_start); | 44 | _ENTRY(_start); |
44 | 45 | ||
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 4c22620d009b..5bdcc06d294c 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S | |||
@@ -30,6 +30,7 @@ | |||
30 | * option) any later version. | 30 | * option) any later version. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <linux/init.h> | ||
33 | #include <linux/threads.h> | 34 | #include <linux/threads.h> |
34 | #include <asm/processor.h> | 35 | #include <asm/processor.h> |
35 | #include <asm/page.h> | 36 | #include <asm/page.h> |
@@ -53,7 +54,7 @@ | |||
53 | * r7 - End of kernel command line string | 54 | * r7 - End of kernel command line string |
54 | * | 55 | * |
55 | */ | 56 | */ |
56 | .section .text.head, "ax" | 57 | __HEAD |
57 | _ENTRY(_stext); | 58 | _ENTRY(_stext); |
58 | _ENTRY(_start); | 59 | _ENTRY(_start); |
59 | /* | 60 | /* |
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c index 8f0856f312da..8362620c9e6f 100644 --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c | |||
@@ -971,7 +971,7 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq | |||
971 | struct device_node *p; | 971 | struct device_node *p; |
972 | const u32 *intspec, *tmp, *addr; | 972 | const u32 *intspec, *tmp, *addr; |
973 | u32 intsize, intlen; | 973 | u32 intsize, intlen; |
974 | int res; | 974 | int res = -EINVAL; |
975 | 975 | ||
976 | DBG("of_irq_map_one: dev=%s, index=%d\n", device->full_name, index); | 976 | DBG("of_irq_map_one: dev=%s, index=%d\n", device->full_name, index); |
977 | 977 | ||
@@ -995,21 +995,20 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq | |||
995 | 995 | ||
996 | /* Get size of interrupt specifier */ | 996 | /* Get size of interrupt specifier */ |
997 | tmp = of_get_property(p, "#interrupt-cells", NULL); | 997 | tmp = of_get_property(p, "#interrupt-cells", NULL); |
998 | if (tmp == NULL) { | 998 | if (tmp == NULL) |
999 | of_node_put(p); | 999 | goto out; |
1000 | return -EINVAL; | ||
1001 | } | ||
1002 | intsize = *tmp; | 1000 | intsize = *tmp; |
1003 | 1001 | ||
1004 | DBG(" intsize=%d intlen=%d\n", intsize, intlen); | 1002 | DBG(" intsize=%d intlen=%d\n", intsize, intlen); |
1005 | 1003 | ||
1006 | /* Check index */ | 1004 | /* Check index */ |
1007 | if ((index + 1) * intsize > intlen) | 1005 | if ((index + 1) * intsize > intlen) |
1008 | return -EINVAL; | 1006 | goto out; |
1009 | 1007 | ||
1010 | /* Get new specifier and map it */ | 1008 | /* Get new specifier and map it */ |
1011 | res = of_irq_map_raw(p, intspec + index * intsize, intsize, | 1009 | res = of_irq_map_raw(p, intspec + index * intsize, intsize, |
1012 | addr, out_irq); | 1010 | addr, out_irq); |
1011 | out: | ||
1013 | of_node_put(p); | 1012 | of_node_put(p); |
1014 | return res; | 1013 | return res; |
1015 | } | 1014 | } |
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 926ea864e34f..48571ac56fb7 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -77,7 +77,7 @@ | |||
77 | #include <linux/clockchips.h> | 77 | #include <linux/clockchips.h> |
78 | #include <linux/clocksource.h> | 78 | #include <linux/clocksource.h> |
79 | 79 | ||
80 | static cycle_t rtc_read(void); | 80 | static cycle_t rtc_read(struct clocksource *); |
81 | static struct clocksource clocksource_rtc = { | 81 | static struct clocksource clocksource_rtc = { |
82 | .name = "rtc", | 82 | .name = "rtc", |
83 | .rating = 400, | 83 | .rating = 400, |
@@ -88,7 +88,7 @@ static struct clocksource clocksource_rtc = { | |||
88 | .read = rtc_read, | 88 | .read = rtc_read, |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static cycle_t timebase_read(void); | 91 | static cycle_t timebase_read(struct clocksource *); |
92 | static struct clocksource clocksource_timebase = { | 92 | static struct clocksource clocksource_timebase = { |
93 | .name = "timebase", | 93 | .name = "timebase", |
94 | .rating = 400, | 94 | .rating = 400, |
@@ -766,12 +766,12 @@ unsigned long read_persistent_clock(void) | |||
766 | } | 766 | } |
767 | 767 | ||
768 | /* clocksource code */ | 768 | /* clocksource code */ |
769 | static cycle_t rtc_read(void) | 769 | static cycle_t rtc_read(struct clocksource *cs) |
770 | { | 770 | { |
771 | return (cycle_t)get_rtc(); | 771 | return (cycle_t)get_rtc(); |
772 | } | 772 | } |
773 | 773 | ||
774 | static cycle_t timebase_read(void) | 774 | static cycle_t timebase_read(struct clocksource *cs) |
775 | { | 775 | { |
776 | return (cycle_t)get_tb(); | 776 | return (cycle_t)get_tb(); |
777 | } | 777 | } |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index b9ef1644a722..a047a6cfca4d 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -52,9 +52,10 @@ SECTIONS | |||
52 | /* Text and gots */ | 52 | /* Text and gots */ |
53 | .text : AT(ADDR(.text) - LOAD_OFFSET) { | 53 | .text : AT(ADDR(.text) - LOAD_OFFSET) { |
54 | ALIGN_FUNCTION(); | 54 | ALIGN_FUNCTION(); |
55 | *(.text.head) | 55 | HEAD_TEXT |
56 | _text = .; | 56 | _text = .; |
57 | *(.text .fixup .text.init.refok .exit.text.refok __ftr_alt_*) | 57 | /* careful! __ftr_alt_* sections need to be close to .text */ |
58 | *(.text .fixup __ftr_alt_* .ref.text) | ||
58 | SCHED_TEXT | 59 | SCHED_TEXT |
59 | LOCK_TEXT | 60 | LOCK_TEXT |
60 | KPROBES_TEXT | 61 | KPROBES_TEXT |