]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen: Drop raw_smp_processor_id()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Mar 2020 18:29:06 +0000 (18:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Mar 2020 18:57:45 +0000 (18:57 +0000)
There is only a single user of raw_smp_processor_id() left in the tree (and it
is unconditionally compiled out).  Drop the alias from all architectures.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/cpu/microcode/amd.c
xen/include/asm-arm/smp.h
xen/include/asm-x86/smp.h
xen/include/xen/smp.h

index 629f53c7b8da2ff59a3fb7d1527a2730684e21b8..26b4d47567bb4e006a3e55779b1b95e4a449f88a 100644 (file)
@@ -295,7 +295,7 @@ static int get_ucode_from_buffer_amd(
     memcpy(mc_amd->mpb, mpbuf->data, mpbuf->len);
 
     pr_debug("microcode: CPU%d size %zu, block size %u offset %zu equivID %#x rev %#x\n",
-             raw_smp_processor_id(), bufsize, mpbuf->len, *offset,
+             smp_processor_id(), bufsize, mpbuf->len, *offset,
              ((struct microcode_header_amd *)mc_amd->mpb)->processor_rev_id,
              ((struct microcode_header_amd *)mc_amd->mpb)->patch_id);
 
index fdbcefa2412153c64e7970bd5b7ddc05794c6cb8..af5a2fe652662fd6a00d5ece1d71b5030bf68712 100644 (file)
@@ -12,7 +12,7 @@ DECLARE_PER_CPU(cpumask_var_t, cpu_core_mask);
 
 #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu))
 
-#define raw_smp_processor_id() (get_processor_id())
+#define smp_processor_id() get_processor_id()
 
 /*
  * Do we, for platform reasons, need to actually keep CPUs online when we
index 6150363655b1bc2132320e205206656afc58a87f..f7485f602efa908a6c30ee31cb3bdbd8d3a60b6a 100644 (file)
@@ -53,7 +53,7 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm);
  * from the initial startup. We map APIC_BASE very early in page_setup(),
  * so this is correct in the x86 case.
  */
-#define raw_smp_processor_id() (get_processor_id())
+#define smp_processor_id() get_processor_id()
 
 void __stop_this_cpu(void);
 
index a64c9b3882dee00fed39fb76b8d7c61a840d7691..d5a3644611db6541a17d53ff3c3f2b31446ab003 100644 (file)
@@ -65,8 +65,6 @@ void smp_call_function_interrupt(void);
 
 void smp_send_call_function_mask(const cpumask_t *mask);
 
-#define smp_processor_id() raw_smp_processor_id()
-
 int alloc_cpu_id(void);
 
 extern void *stack_base[NR_CPUS];