Commit 69aea20e authored by Andrew Morton's avatar Andrew Morton Committed by Patrick Mochel

[PATCH] visws: fix for generic-subarch

From: Andy Wihitcroft <apw@shadowen.org>

The generic-subarch patch broke visws builds.
parent 4ca26989
...@@ -1149,7 +1149,9 @@ int __devinit __cpu_up(unsigned int cpu) ...@@ -1149,7 +1149,9 @@ int __devinit __cpu_up(unsigned int cpu)
void __init smp_cpus_done(unsigned int max_cpus) void __init smp_cpus_done(unsigned int max_cpus)
{ {
#ifdef CONFIG_X86_IO_APIC
setup_ioapic_dest(TARGET_CPUS); setup_ioapic_dest(TARGET_CPUS);
#endif
zap_low_mappings(); zap_low_mappings();
} }
......
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
#define check_apicid_used(bitmap, apicid) (bitmap & (1 << apicid)) #define check_apicid_used(bitmap, apicid) (bitmap & (1 << apicid))
#define check_apicid_present(bit) (phys_cpu_present_map & (1 << bit)) #define check_apicid_present(bit) (phys_cpu_present_map & (1 << bit))
#define APIC_ID_MASK (0xF<<24)
static inline unsigned get_apic_id(unsigned long x)
{
return (((x)>>24)&0xF);
}
#define GET_APIC_ID(x) get_apic_id(x)
static inline int apic_id_registered(void) static inline int apic_id_registered(void)
{ {
return (test_bit(GET_APIC_ID(apic_read(APIC_ID)), return (test_bit(GET_APIC_ID(apic_read(APIC_ID)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment