Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88869
b: refs/heads/master
c: 8642050
h: refs/heads/master
i:
  88867: 6ae92cd
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Ingo Molnar committed Apr 17, 2008
1 parent ec57ab1 commit c7be5c1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 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: 0ec153af4dec8944e6da558093914a3bce4c76f9
refs/heads/master: 864205062f1c752c80077be8ec2b15c81f4a6525
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/mpparse_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static int __init mpf_checksum(unsigned char *mp, int len)
return sum & 0xFF;
}

#ifdef CONFIG_X86_NUMAQ
/*
* Have to match translation table entries to main table entries by counter
* hence the mpc_record variable .... can't see a less disgusting way of
Expand All @@ -106,6 +107,7 @@ static int __init mpf_checksum(unsigned char *mp, int len)

static int mpc_record;
static struct mpc_config_translation *translation_table[MAX_MPC_ENTRY] __cpuinitdata;
#endif

static void __cpuinit MP_processor_info (struct mpc_config_processor *m)
{
Expand Down Expand Up @@ -475,7 +477,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
/*
* Now process the configuration blocks.
*/
#ifdef CONFIG_X86_NUMAQ
mpc_record = 0;
#endif
while (count < mpc->mpc_length) {
switch(*mpt) {
case MP_PROCESSOR:
Expand Down Expand Up @@ -532,7 +536,9 @@ static int __init smp_read_mpc(struct mp_config_table *mpc)
break;
}
}
#ifdef CONFIG_X86_NUMAQ
++mpc_record;
#endif
}
setup_apic_routing();
if (!num_processors)
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-x86/genapic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* Copyright 2003 Andi Kleen, SuSE Labs.
*/

struct mpc_config_translation;
struct mpc_config_bus;
struct mp_config_table;
struct mpc_config_processor;
Expand Down
10 changes: 10 additions & 0 deletions trunk/include/asm-x86/mach-numaq/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ static inline physid_mask_t apicid_to_cpu_present(int logical_apicid)
return physid_mask_of_physid(cpu + 4*node);
}

struct mpc_config_translation {
unsigned char mpc_type;
unsigned char trans_len;
unsigned char trans_type;
unsigned char trans_quad;
unsigned char trans_global;
unsigned char trans_local;
unsigned short trans_reserved;
};

static inline int mpc_apic_id(struct mpc_config_processor *m,
struct mpc_config_translation *translation_record)
{
Expand Down
11 changes: 0 additions & 11 deletions trunk/include/asm-x86/mpspec_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,6 @@ struct mp_config_oemtable
char mpc_oem[8];
};

struct mpc_config_translation
{
unsigned char mpc_type;
unsigned char trans_len;
unsigned char trans_type;
unsigned char trans_quad;
unsigned char trans_global;
unsigned char trans_local;
unsigned short trans_reserved;
};

/*
* Default configurations
*
Expand Down

0 comments on commit c7be5c1

Please sign in to comment.