diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-30 20:07:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-30 20:07:38 -0500 |
commit | 1811534a80697b34add31cff53a321cfc291ddfe (patch) | |
tree | ed4978f2fcf8565baf61afbe4b3d10187cf577a8 | |
parent | b62c855938be50c13f3f2aa81fafe4a9ca2b6650 (diff) | |
parent | e6a1bb725eab1348d4a985b7faeff8186210d7b4 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Fix build.
[MIPS] Fix use of smp_processor_id() in preemptible code.
-rw-r--r-- | arch/mips/kernel/csrc-r4k.c | 6 | ||||
-rw-r--r-- | include/asm-mips/cpu-features.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/mips/kernel/csrc-r4k.c b/arch/mips/kernel/csrc-r4k.c index 74c5c62365a8..0e2b5cd81f67 100644 --- a/arch/mips/kernel/csrc-r4k.c +++ b/arch/mips/kernel/csrc-r4k.c | |||
@@ -5,6 +5,10 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2007 by Ralf Baechle | 6 | * Copyright (C) 2007 by Ralf Baechle |
7 | */ | 7 | */ |
8 | #include <linux/clocksource.h> | ||
9 | #include <linux/init.h> | ||
10 | |||
11 | #include <asm/time.h> | ||
8 | 12 | ||
9 | static cycle_t c0_hpt_read(void) | 13 | static cycle_t c0_hpt_read(void) |
10 | { | 14 | { |
@@ -18,7 +22,7 @@ static struct clocksource clocksource_mips = { | |||
18 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 22 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
19 | }; | 23 | }; |
20 | 24 | ||
21 | static void __init init_mips_clocksource(void) | 25 | void __init init_mips_clocksource(void) |
22 | { | 26 | { |
23 | /* Calclate a somewhat reasonable rating value */ | 27 | /* Calclate a somewhat reasonable rating value */ |
24 | clocksource_mips.rating = 200 + mips_hpt_frequency / 10000000; | 28 | clocksource_mips.rating = 200 + mips_hpt_frequency / 10000000; |
diff --git a/include/asm-mips/cpu-features.h b/include/asm-mips/cpu-features.h index f6bd308f047f..5ea701fc3425 100644 --- a/include/asm-mips/cpu-features.h +++ b/include/asm-mips/cpu-features.h | |||
@@ -207,13 +207,13 @@ | |||
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | #ifndef cpu_dcache_line_size | 209 | #ifndef cpu_dcache_line_size |
210 | #define cpu_dcache_line_size() current_cpu_data.dcache.linesz | 210 | #define cpu_dcache_line_size() cpu_data[0].dcache.linesz |
211 | #endif | 211 | #endif |
212 | #ifndef cpu_icache_line_size | 212 | #ifndef cpu_icache_line_size |
213 | #define cpu_icache_line_size() current_cpu_data.icache.linesz | 213 | #define cpu_icache_line_size() cpu_data[0].icache.linesz |
214 | #endif | 214 | #endif |
215 | #ifndef cpu_scache_line_size | 215 | #ifndef cpu_scache_line_size |
216 | #define cpu_scache_line_size() current_cpu_data.scache.linesz | 216 | #define cpu_scache_line_size() cpu_data[0].scache.linesz |
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | #endif /* __ASM_CPU_FEATURES_H */ | 219 | #endif /* __ASM_CPU_FEATURES_H */ |