diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:24:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:24:13 -0400 |
commit | e3ae0acf59244ecf5b023ec99cef4b6b29d649bc (patch) | |
tree | 02a8bfdcab61677430ecfe04e9e44e1007c35f0e /include/asm-x86/mpspec.h | |
parent | 4b62ac9a2b859f932afd5625362c927111b7dd9b (diff) | |
parent | e7eb8726d0e144f0925972c4ecee945e91a42753 (diff) |
Merge branch 'x86/uv' into x86/devel
Diffstat (limited to 'include/asm-x86/mpspec.h')
-rw-r--r-- | include/asm-x86/mpspec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/mpspec.h b/include/asm-x86/mpspec.h index 6ec1a5453b3e..b6995e567fcc 100644 --- a/include/asm-x86/mpspec.h +++ b/include/asm-x86/mpspec.h | |||
@@ -122,6 +122,7 @@ typedef struct physid_mask physid_mask_t; | |||
122 | __physid_mask; \ | 122 | __physid_mask; \ |
123 | }) | 123 | }) |
124 | 124 | ||
125 | /* Note: will create very large stack frames if physid_mask_t is big */ | ||
125 | #define physid_mask_of_physid(physid) \ | 126 | #define physid_mask_of_physid(physid) \ |
126 | ({ \ | 127 | ({ \ |
127 | physid_mask_t __physid_mask = PHYSID_MASK_NONE; \ | 128 | physid_mask_t __physid_mask = PHYSID_MASK_NONE; \ |
@@ -129,6 +130,12 @@ typedef struct physid_mask physid_mask_t; | |||
129 | __physid_mask; \ | 130 | __physid_mask; \ |
130 | }) | 131 | }) |
131 | 132 | ||
133 | static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map) | ||
134 | { | ||
135 | physids_clear(*map); | ||
136 | physid_set(physid, *map); | ||
137 | } | ||
138 | |||
132 | #define PHYSID_MASK_ALL { {[0 ... PHYSID_ARRAY_SIZE-1] = ~0UL} } | 139 | #define PHYSID_MASK_ALL { {[0 ... PHYSID_ARRAY_SIZE-1] = ~0UL} } |
133 | #define PHYSID_MASK_NONE { {[0 ... PHYSID_ARRAY_SIZE-1] = 0UL} } | 140 | #define PHYSID_MASK_NONE { {[0 ... PHYSID_ARRAY_SIZE-1] = 0UL} } |
134 | 141 | ||