Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136547
b: refs/heads/master
c: 505deeb
h: refs/heads/master
i:
  136545: 4e788c8
  136543: e2cf7c2
v: v3
  • Loading branch information
Ingo Molnar committed Jan 28, 2009
1 parent dee626f commit 37b4df5
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ced733ec0bfe9a8a5140a7aefdfe802598e4b8c0
refs/heads/master: 505deeb1a228e5b0bf6ac5d0d78f4a4253a9efe9
17 changes: 8 additions & 9 deletions trunk/arch/x86/include/asm/genapic.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include <linux/cpumask.h>

#include <asm/mpspec.h>
#include <asm/atomic.h>

/*
* Copyright 2004 James Cleverdon, IBM.
* Subject to the GNU Public License, v.2
Expand All @@ -13,7 +16,6 @@
* Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and
* James Cleverdon.
*/

struct genapic {
char *name;

Expand Down Expand Up @@ -85,17 +87,17 @@ struct genapic {

int trampoline_phys_low;
int trampoline_phys_high;

void (*wait_for_init_deassert)(atomic_t *deassert);
void (*smp_callin_clear_local_apic)(void);
void (*store_NMI_vector)(unsigned short *high, unsigned short *low);
void (*restore_NMI_vector)(unsigned short *high, unsigned short *low);
void (*inquire_remote_apic)(int apicid);
};

#ifdef CONFIG_X86_32
extern struct genapic *genapic;

#include <asm/mpspec.h>
#include <asm/atomic.h>
#ifdef CONFIG_X86_32

#define APICFUNC(x) .x = x,

Expand Down Expand Up @@ -143,22 +145,19 @@ struct genapic {
IPIFUNC(send_IPI_all) \
APICFUNC(enable_apic_mode) \
APICFUNC(phys_pkg_id) \
.trampoline_phys_low = TRAMPOLINE_PHYS_LOW, \
.trampoline_phys_high = TRAMPOLINE_PHYS_HIGH, \
.trampoline_phys_low = TRAMPOLINE_PHYS_LOW, \
.trampoline_phys_high = TRAMPOLINE_PHYS_HIGH, \
APICFUNC(wait_for_init_deassert) \
APICFUNC(smp_callin_clear_local_apic) \
APICFUNC(store_NMI_vector) \
APICFUNC(restore_NMI_vector) \
APICFUNC(inquire_remote_apic) \
}

extern struct genapic *genapic;
extern void es7000_update_genapic_to_cluster(void);

#else /* CONFIG_X86_64: */

extern struct genapic *genapic;

extern struct genapic apic_flat;
extern struct genapic apic_physflat;
extern struct genapic apic_x2apic_cluster;
Expand Down

0 comments on commit 37b4df5

Please sign in to comment.