Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136613
b: refs/heads/master
c: 1f75ed0
h: refs/heads/master
i:
  136611: 73e101f
v: v3
  • Loading branch information
Ingo Molnar committed Jan 28, 2009
1 parent 088635b commit d70c1e5
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 41 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: b2af018ff26f1a2a026f548f7f0e552589905689
refs/heads/master: 1f75ed0c1311a50ed393bcac258de65680d360e5
16 changes: 16 additions & 0 deletions trunk/arch/x86/include/asm/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,20 @@ static inline void disable_local_APIC(void) { }

#endif /* !CONFIG_X86_LOCAL_APIC */

#ifdef CONFIG_X86_64
#define SET_APIC_ID(x) (apic->set_apic_id(x))
#else

static inline unsigned default_get_apic_id(unsigned long x)
{
unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR));

if (APIC_XAPIC(ver))
return (x >> 24) & 0xFF;
else
return (x >> 24) & 0x0F;
}

#endif

#endif /* _ASM_X86_APIC_H */
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/mach-default/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#ifdef CONFIG_X86_LOCAL_APIC

#include <mach_apicdef.h>
#include <asm/smp.h>

#define APIC_DFR_VALUE (APIC_DFR_FLAT)
Expand Down
22 changes: 0 additions & 22 deletions trunk/arch/x86/include/asm/mach-default/mach_apicdef.h

This file was deleted.

8 changes: 0 additions & 8 deletions trunk/arch/x86/include/asm/mach-generic/mach_apicdef.h

This file was deleted.

4 changes: 2 additions & 2 deletions trunk/arch/x86/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ extern int safe_smp_processor_id(void);

#endif

#include <asm/genapic.h>

#ifdef CONFIG_X86_LOCAL_APIC

#ifndef CONFIG_X86_64
Expand All @@ -182,7 +184,6 @@ static inline int logical_smp_processor_id(void)
return GET_APIC_LOGICAL_ID(*(u32 *)(APIC_BASE + APIC_LDR));
}

#include <mach_apicdef.h>
static inline unsigned int read_apic_id(void)
{
unsigned int reg;
Expand All @@ -197,7 +198,6 @@ static inline unsigned int read_apic_id(void)
# if defined(APIC_DEFINITION) || defined(CONFIG_X86_64)
extern int hard_smp_processor_id(void);
# else
#include <mach_apicdef.h>
static inline int hard_smp_processor_id(void)
{
/* we don't want to mark this access volatile - bad code generation */
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <asm/smp.h>

#include <mach_apic.h>
#include <mach_apicdef.h>
#include <mach_ipi.h>

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/genapic_flat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <asm/smp.h>
#include <asm/ipi.h>
#include <asm/genapic.h>
#include <mach_apicdef.h>

#ifdef CONFIG_ACPI
#include <acpi/acpi_bus.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

#include <mach_ipi.h>
#include <mach_apic.h>
#include <mach_apicdef.h>

#define __apicdebuginit(type) static type __init

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
#include <asm/smp.h>

#include <mach_apic.h>
#ifdef CONFIG_X86_32
#include <mach_apicdef.h>
#endif

/*
* Checksum an MP configuration block.
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/mach-generic/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <asm/mpspec.h>
#include <asm/mach-default/mach_apicdef.h>
#include <asm/genapic.h>
#include <asm/fixmap.h>
#include <asm/apicdef.h>
Expand Down

0 comments on commit d70c1e5

Please sign in to comment.