Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22990
b: refs/heads/master
c: e5428ed
h: refs/heads/master
v: v3
  • Loading branch information
Natalie.Protasevich@unisys.com authored and Linus Torvalds committed Mar 23, 2006
1 parent b4f4838 commit 7679c38
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54a20f8c5d778ed3603130de4b92f64405228611
refs/heads/master: e5428ede94179ddccaa56308e0f194fa299edbb4
4 changes: 2 additions & 2 deletions trunk/arch/i386/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ void __init find_smp_config (void)
smp_scan_config(address, 0x400);
}

int es7000_plat;

/* --------------------------------------------------------------------------
ACPI-based MP Configuration
-------------------------------------------------------------------------- */
Expand Down Expand Up @@ -1011,8 +1013,6 @@ void __init mp_override_legacy_irq (
return;
}

int es7000_plat;

void __init mp_config_acpi_legacy_irqs (void)
{
struct mpc_config_intsrc intsrc;
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/i386/mach-es7000/es7000.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct es7000_oem_table {
struct psai psai;
};

#ifdef CONFIG_ACPI
struct acpi_table_sdt {
unsigned long pa;
unsigned long count;
Expand All @@ -99,6 +100,9 @@ struct oem_table {
u32 OEMTableSize;
};

extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
#endif

struct mip_reg {
unsigned long long off_0;
unsigned long long off_8;
Expand All @@ -114,7 +118,6 @@ struct mip_reg {
#define MIP_FUNC(VALUE) (VALUE & 0xff)

extern int parse_unisys_oem (char *oemptr);
extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
extern void setup_unisys(void);
extern int es7000_start_cpu(int cpu, unsigned long eip);
extern void es7000_sw_apic(void);
6 changes: 2 additions & 4 deletions trunk/arch/i386/mach-es7000/es7000plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ struct mip_reg *host_reg;
int mip_port;
unsigned long mip_addr, host_addr;

#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)

/*
* GSI override for ES7000 platforms.
*/
Expand All @@ -76,8 +74,6 @@ es7000_rename_gsi(int ioapic, int gsi)
return gsi;
}

#endif /* (CONFIG_X86_IO_APIC) && (CONFIG_ACPI) */

void __init
setup_unisys(void)
{
Expand Down Expand Up @@ -160,6 +156,7 @@ parse_unisys_oem (char *oemptr)
return es7000_plat;
}

#ifdef CONFIG_ACPI
int __init
find_unisys_acpi_oem_table(unsigned long *oem_addr)
{
Expand Down Expand Up @@ -212,6 +209,7 @@ find_unisys_acpi_oem_table(unsigned long *oem_addr)
}
return -1;
}
#endif

static void
es7000_spin(int n)
Expand Down
10 changes: 8 additions & 2 deletions trunk/include/asm-i386/mach-es7000/mach_mpparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
return 0;
}

static inline int es7000_check_dsdt()
#ifdef CONFIG_ACPI
static inline int es7000_check_dsdt(void)
{
struct acpi_table_header *header = NULL;
if(!acpi_get_table_header_early(ACPI_DSDT, &header))
Expand All @@ -54,6 +55,11 @@ static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
}
return 0;
}

#else
static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
return 0;
}
#endif

#endif /* __ASM_MACH_MPPARSE_H */

0 comments on commit 7679c38

Please sign in to comment.