提交 ba10485c 编写于 作者: G Glauber de Oliveira Costa 提交者: Ingo Molnar

x86: add loglevel to printks

Add loglevel facilities to printks in __inquire_remote_apic.
the levels are the ones to match x86_64 ones.
Signed-off-by: NGlauber Costa <gcosta@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 26c6b5ea
...@@ -373,17 +373,18 @@ static inline void __inquire_remote_apic(int apicid) ...@@ -373,17 +373,18 @@ static inline void __inquire_remote_apic(int apicid)
int timeout; int timeout;
u32 status; u32 status;
printk("Inquiring remote APIC #%d...\n", apicid); printk(KERN_INFO "Inquiring remote APIC #%d...\n", apicid);
for (i = 0; i < ARRAY_SIZE(regs); i++) { 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. * Wait for idle.
*/ */
status = safe_apic_wait_icr_idle(); status = safe_apic_wait_icr_idle();
if (status) if (status)
printk("a previous APIC delivery may have failed\n"); printk(KERN_CONT
"a previous APIC delivery may have failed\n");
apic_write_around(APIC_ICR2, SET_APIC_DEST_FIELD(apicid)); apic_write_around(APIC_ICR2, SET_APIC_DEST_FIELD(apicid));
apic_write_around(APIC_ICR, APIC_DM_REMRD | regs[i]); apic_write_around(APIC_ICR, APIC_DM_REMRD | regs[i]);
...@@ -397,10 +398,10 @@ static inline void __inquire_remote_apic(int apicid) ...@@ -397,10 +398,10 @@ static inline void __inquire_remote_apic(int apicid)
switch (status) { switch (status) {
case APIC_ICR_RR_VALID: case APIC_ICR_RR_VALID:
status = apic_read(APIC_RRR); status = apic_read(APIC_RRR);
printk("%lx\n", status); printk(KERN_CONT "%08x\n", status);
break; break;
default: default:
printk("failed\n"); printk(KERN_CONT "failed\n");
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册