Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79740
b: refs/heads/master
c: 3c6bb07
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent 1769167 commit 1b1d860
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 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: 37e650c7c8a27de533d409b53c29f4135dcc7af6
refs/heads/master: 3c6bb07ac1b4174318606a26f0de8ceb9f6d8133
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ void apic_wait_icr_idle(void)
cpu_relax();
}

unsigned int safe_apic_wait_icr_idle(void)
u32 safe_apic_wait_icr_idle(void)
{
unsigned int send_status;
u32 send_status;
int timeout;

timeout = 0;
Expand Down
11 changes: 6 additions & 5 deletions trunk/arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,19 +384,20 @@ static void inquire_remote_apic(int apicid)
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
char *names[] = { "ID", "VERSION", "SPIV" };
int timeout;
unsigned int status;
u32 status;

printk(KERN_INFO "Inquiring remote APIC #%d...\n", apicid);

for (i = 0; i < ARRAY_SIZE(regs); i++) {
printk("... APIC #%d %s: ", apicid, names[i]);
printk(KERN_INFO "... APIC #%d %s: ", apicid, names[i]);

/*
* Wait for idle.
*/
status = safe_apic_wait_icr_idle();
if (status)
printk("a previous APIC delivery may have failed\n");
printk(KERN_CONT
"a previous APIC delivery may have failed\n");

apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(apicid));
apic_write(APIC_ICR, APIC_DM_REMRD | regs[i]);
Expand All @@ -410,10 +411,10 @@ static void inquire_remote_apic(int apicid)
switch (status) {
case APIC_ICR_RR_VALID:
status = apic_read(APIC_RRR);
printk("%08x\n", status);
printk(KERN_CONT "%08x\n", status);
break;
default:
printk("failed\n");
printk(KERN_CONT "failed\n");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86/apic_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static __inline unsigned int apic_read(unsigned long reg)
}

extern void apic_wait_icr_idle(void);
extern unsigned int safe_apic_wait_icr_idle(void);
extern u32 safe_apic_wait_icr_idle(void);

static inline void ack_APIC_irq(void)
{
Expand Down

0 comments on commit 1b1d860

Please sign in to comment.