Skip to contentSkip to conversation

cpumask: remove old cpu_*_map.

PATCH Applied Rusty Russell 2 participants 2 messages Feb 15, 2012 Bitmap API

lore
Share & tools
lore
#0 lore raw

PATCH 12/12 cpumask: remove old cpu_*_map.

From: Rusty Russell <[email protected]>

These are obsolete: cpu_*_mask provides (const) pointers.

---
 include/linux/cpumask.h |    6 ------
 1 file changed, 6 deletions(-)
include/linux/cpumask.h +0 -6
@@ -763,12 +763,6 @@ static inline const struct cpumask *get_
  *
  */
 #ifndef CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
-/* These strip const, as traditionally they weren't const. */
-#define cpu_possible_map	(*(cpumask_t *)cpu_possible_mask)
-#define cpu_online_map		(*(cpumask_t *)cpu_online_mask)
-#define cpu_present_map		(*(cpumask_t *)cpu_present_mask)
-#define cpu_active_map		(*(cpumask_t *)cpu_active_mask)
-
 #define cpumask_of_cpu(cpu) (*get_cpu_mask(cpu))
 
 #define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)
Reviewed-by on v1 12/12
#1 lore raw
Quoted 6 lines · Rusty Russell

From: Rusty Russell <[email protected]>

These are obsolete: cpu_*_mask provides (const) pointers.

---

This one should be preceded by a cleanup patch in ia64.
I will revise the one I posted at https://lkml.org/lkml/2012/2/14/355
and post it soon. And then you can include my patch in your patchset...

Other than that, this looks fine.

Regards,
Srivatsa S. Bhat