Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136591
b: refs/heads/master
c: b0b20e5
h: refs/heads/master
i:
  136589: 8938909
  136587: 7d6afca
  136583: e1fc1fd
  136575: 3200d94
v: v3
  • Loading branch information
Ingo Molnar committed Jan 28, 2009
1 parent 740f124 commit 2468633
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 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: 4904033302c745342e3b3a611881cdee57fbe06a
refs/heads/master: b0b20e5a3a6615ae750804523aeedd32911bb9d6
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/es7000/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ static inline unsigned long es7000_check_apicid_present(int bit)
return physid_isset(bit, phys_cpu_present_map);
}

extern void es7000_enable_apic_mode(void);

#define apicid_cluster(apicid) (apicid & 0xF0)

static inline unsigned long calculate_ldr(int cpu)
Expand Down
27 changes: 14 additions & 13 deletions trunk/arch/x86/kernel/es7000_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,20 +359,21 @@ es7000_mip_write(struct mip_reg *mip_reg)
return status;
}

void __init
es7000_sw_apic(void)
void __init es7000_enable_apic_mode(void)
{
if (es7000_plat) {
int mip_status;
struct mip_reg es7000_mip_reg;

printk("ES7000: Enabling APIC mode.\n");
memset(&es7000_mip_reg, 0, sizeof(struct mip_reg));
es7000_mip_reg.off_0 = MIP_SW_APIC;
es7000_mip_reg.off_38 = (MIP_VALID);
while ((mip_status = es7000_mip_write(&es7000_mip_reg)) != 0)
printk("es7000_sw_apic: command failed, status = %x\n",
mip_status);
struct mip_reg es7000_mip_reg;
int mip_status;

if (!es7000_plat)
return;

printk("ES7000: Enabling APIC mode.\n");
memset(&es7000_mip_reg, 0, sizeof(struct mip_reg));
es7000_mip_reg.off_0 = MIP_SW_APIC;
es7000_mip_reg.off_38 = MIP_VALID;

while ((mip_status = es7000_mip_write(&es7000_mip_reg)) != 0) {
printk("es7000_enable_apic_mode: command failed, status = %x\n",
mip_status);
}
}
7 changes: 0 additions & 7 deletions trunk/arch/x86/mach-generic/es7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ static int probe_es7000(void)
return 0;
}

extern void es7000_sw_apic(void);

static void __init es7000_enable_apic_mode(void)
{
es7000_sw_apic();
}

static __init int
mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
{
Expand Down

0 comments on commit 2468633

Please sign in to comment.