diff options
author | Anton Blanchard <anton@samba.org> | 2010-08-05 23:28:19 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-24 01:26:30 -0400 |
commit | 4138d65333fa8961714441ed40229ea8cbeaf7e5 (patch) | |
tree | 71b1d2c7ced4e4e267e357d91d6cec2e1d053af1 /arch/powerpc/kernel/process.c | |
parent | 954e6da54b2f3a5e2634312db800bc1395c509ee (diff) |
powerpc: Inline ppc64_runlatch_off
I'm sick of seeing ppc64_runlatch_off in our profiles, so inline it
into the callers. To avoid a mess of circular includes I didn't add
it as an inline function.
Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 986fedf7e278..b1c648a36b03 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -1199,19 +1199,17 @@ void ppc64_runlatch_on(void) | |||
1199 | } | 1199 | } |
1200 | } | 1200 | } |
1201 | 1201 | ||
1202 | void ppc64_runlatch_off(void) | 1202 | void __ppc64_runlatch_off(void) |
1203 | { | 1203 | { |
1204 | unsigned long ctrl; | 1204 | unsigned long ctrl; |
1205 | 1205 | ||
1206 | if (cpu_has_feature(CPU_FTR_CTRL) && test_thread_flag(TIF_RUNLATCH)) { | 1206 | HMT_medium(); |
1207 | HMT_medium(); | ||
1208 | 1207 | ||
1209 | clear_thread_flag(TIF_RUNLATCH); | 1208 | clear_thread_flag(TIF_RUNLATCH); |
1210 | 1209 | ||
1211 | ctrl = mfspr(SPRN_CTRLF); | 1210 | ctrl = mfspr(SPRN_CTRLF); |
1212 | ctrl &= ~CTRL_RUNLATCH; | 1211 | ctrl &= ~CTRL_RUNLATCH; |
1213 | mtspr(SPRN_CTRLT, ctrl); | 1212 | mtspr(SPRN_CTRLT, ctrl); |
1214 | } | ||
1215 | } | 1213 | } |
1216 | #endif | 1214 | #endif |
1217 | 1215 | ||