Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Remove cpu_sibling_mask() and cpu_core_mask()

These functions are arch-specific and duplicate the
functionality of macros defined in linux/include/topology.h.

Remove them as all the callers in x86 have now switched to using
the topology_**_cpumask() family.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Benoit Cousson <bcousson@baylibre.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Link: http://lkml.kernel.org/r/1432645896-12588-10-git-send-email-bgolaszewski@baylibre.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Bartosz Golaszewski and committed by
Ingo Molnar
960d447b 7d79a7bd

-10
-10
arch/x86/include/asm/smp.h
··· 37 37 DECLARE_PER_CPU_READ_MOSTLY(u16, cpu_llc_id); 38 38 DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number); 39 39 40 - static inline struct cpumask *cpu_sibling_mask(int cpu) 41 - { 42 - return per_cpu(cpu_sibling_map, cpu); 43 - } 44 - 45 - static inline struct cpumask *cpu_core_mask(int cpu) 46 - { 47 - return per_cpu(cpu_core_map, cpu); 48 - } 49 - 50 40 static inline struct cpumask *cpu_llc_shared_mask(int cpu) 51 41 { 52 42 return per_cpu(cpu_llc_shared_map, cpu);