aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/processor.h
diff options
context:
space:
mode:
authorBecky Bruce <bgill@freescale.com>2005-09-22 15:20:04 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-25 08:38:46 -0400
commitfeaf7cf153335fe7100b65ed6f4585c3574fe69a (patch)
treec57198f01b5f12ffe8ce90f4e1399505c1f84a02 /include/asm-ppc64/processor.h
parent2bfadee32f1501faa3184d574f6a769f17236c87 (diff)
[PATCH] powerpc: merge atomic.h, memory.h
powerpc: Merge atomic.h and memory.h into powerpc Merged atomic.h into include/powerpc. Moved asm-style HMT_ defines from memory.h into ppc_asm.h, where there were already HMT_defines; moved c-style HMT_ defines to processor.h. Renamed memory.h to synch.h to better reflect its contents. Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Becky Bruce <becky.bruce@freescale.com> Signed-off-by: Jon Loeliger <linuxppc@jdl.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/processor.h')
-rw-r--r--include/asm-ppc64/processor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-ppc64/processor.h b/include/asm-ppc64/processor.h
index 4146189006e3..e5fc18531ec1 100644
--- a/include/asm-ppc64/processor.h
+++ b/include/asm-ppc64/processor.h
@@ -368,6 +368,14 @@ GLUE(.,name):
368#define mfasr() ({unsigned long rval; \ 368#define mfasr() ({unsigned long rval; \
369 asm volatile("mfasr %0" : "=r" (rval)); rval;}) 369 asm volatile("mfasr %0" : "=r" (rval)); rval;})
370 370
371/* Macros for adjusting thread priority (hardware multi-threading) */
372#define HMT_very_low() asm volatile("or 31,31,31 # very low priority")
373#define HMT_low() asm volatile("or 1,1,1 # low priority")
374#define HMT_medium_low() asm volatile("or 6,6,6 # medium low priority")
375#define HMT_medium() asm volatile("or 2,2,2 # medium priority")
376#define HMT_medium_high() asm volatile("or 5,5,5 # medium high priority")
377#define HMT_high() asm volatile("or 3,3,3 # high priority")
378
371static inline void set_tb(unsigned int upper, unsigned int lower) 379static inline void set_tb(unsigned int upper, unsigned int lower)
372{ 380{
373 mttbl(0); 381 mttbl(0);