|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: drop hard_smp_procssor_id()
commit ddebece6d540ac8d9211e9b3ff8f9c49cfccc428
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Mon Nov 16 13:12:20 2015 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Nov 16 13:12:20 2015 +0100
x86: drop hard_smp_procssor_id()
... and use what it aliased to directly.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/cpu/common.c | 4 ++--
xen/arch/x86/cpu/mcheck/mce.c | 3 ++-
xen/arch/x86/io_apic.c | 2 +-
xen/arch/x86/smp.c | 5 -----
xen/arch/x86/smpboot.c | 2 +-
xen/include/asm-x86/smp.h | 2 --
6 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/xen/arch/x86/cpu/common.c b/xen/arch/x86/cpu/common.c
index a111ed6..e60929d 100644
--- a/xen/arch/x86/cpu/common.c
+++ b/xen/arch/x86/cpu/common.c
@@ -162,13 +162,13 @@ static inline u32 _phys_pkg_id(u32 cpuid_apic, int
index_msb)
/*
* cpuid returns the value latched in the HW at reset, not the APIC ID
* register's value. For any box whose BIOS changes APIC IDs, like
- * clustered APIC systems, we must use hard_smp_processor_id.
+ * clustered APIC systems, we must use get_apic_id().
*
* See Intel's IA-32 SW Dev's Manual Vol2 under CPUID.
*/
static inline u32 phys_pkg_id(u32 cpuid_apic, int index_msb)
{
- return _phys_pkg_id(hard_smp_processor_id(), index_msb);
+ return _phys_pkg_id(get_apic_id(), index_msb);
}
/* Do minimum CPU detection early.
diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c
index 08cd3f2..d746d0e 100644
--- a/xen/arch/x86/cpu/mcheck/mce.c
+++ b/xen/arch/x86/cpu/mcheck/mce.c
@@ -20,6 +20,7 @@
#include <asm/processor.h>
#include <asm/system.h>
+#include <asm/apic.h>
#include <asm/msr.h>
#include <asm/p2m.h>
@@ -980,7 +981,7 @@ static void do_mc_get_cpu_info(void *v)
cpuid(1, &junk, &ebx, &junk, &junk);
xcp->mc_clusterid = (ebx >> 24) & 0xff;
} else
- xcp->mc_clusterid = hard_smp_processor_id();
+ xcp->mc_clusterid = get_apic_id();
}
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
index 6a71cef..11a0e5d 100644
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -1843,7 +1843,7 @@ static void __init unlock_ExtINT_logic(void)
entry1.dest_mode = 0; /* physical delivery */
entry1.mask = 0; /* unmask IRQ now */
- SET_DEST(entry1, physical, hard_smp_processor_id());
+ SET_DEST(entry1, physical, get_apic_id());
entry1.delivery_mode = dest_ExtINT;
entry1.polarity = entry0.polarity;
entry1.trigger = 0;
diff --git a/xen/arch/x86/smp.c b/xen/arch/x86/smp.c
index 8caa0bc..50ff6c2 100644
--- a/xen/arch/x86/smp.c
+++ b/xen/arch/x86/smp.c
@@ -23,11 +23,6 @@
#include <asm/hvm/support.h>
#include <mach_apic.h>
-int hard_smp_processor_id(void)
-{
- return get_apic_id();
-}
-
/*
* send_IPI_mask(cpumask, vector): sends @vector IPI to CPUs in @cpumask,
* excluding the local CPU. @cpumask may be empty.
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c
index 833a0a5..5d48bac 100644
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -854,7 +854,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
{
printk("weird, boot CPU (#%d) not listed by the BIOS.\n",
boot_cpu_physical_apicid);
- physid_set(hard_smp_processor_id(), phys_cpu_present_map);
+ physid_set(get_apic_id(), phys_cpu_present_map);
}
/* If we couldn't find a local APIC, then get out of here now! */
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
index fb0f42a..64f510b 100644
--- a/xen/include/asm-x86/smp.h
+++ b/xen/include/asm-x86/smp.h
@@ -54,8 +54,6 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm);
*/
#define raw_smp_processor_id() (get_processor_id())
-int hard_smp_processor_id(void);
-
void __stop_this_cpu(void);
long cpu_up_helper(void *data);
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |