From: tip-bot for Jiang Liu <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: mingo@kernel.org, bhelgaas@google.com,
linux-kernel@vger.kernel.org, yinghai@kernel.org,
rdunlap@infradead.org, joro@8bytes.org, hpa@zytor.com,
konrad.wilk@oracle.com, rjw@rjwysocki.net,
jiang.liu@linux.intel.com, tony.luck@intel.com,
tglx@linutronix.de, bp@alien8.de, benh@kernel.crashing.org,
gregkh@linuxfoundation.org
Subject: [tip:x86/apic] x86, irq: Replace printk(KERN_LVL) with pr_lvl() utilities
Date: Fri, 19 Dec 2014 06:08:38 -0800 [thread overview]
Message-ID: <tip-849d3569bbaf2dfdea41a6073bc0e25a0578c380@git.kernel.org> (raw)
In-Reply-To: <1414397531-28254-11-git-send-email-jiang.liu@linux.intel.com>
Commit-ID: 849d3569bbaf2dfdea41a6073bc0e25a0578c380
Gitweb: http://git.kernel.org/tip/849d3569bbaf2dfdea41a6073bc0e25a0578c380
Author: Jiang Liu <jiang.liu@linux.intel.com>
AuthorDate: Mon, 27 Oct 2014 16:12:01 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 16 Dec 2014 14:08:17 +0100
x86, irq: Replace printk(KERN_LVL) with pr_lvl() utilities
Replace printk(KENR_LVL) with pr_lvl() to keep checkpatch script silent.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1414397531-28254-11-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/kernel/apic/vector.c | 69 +++++++++++++++++++++----------------------
1 file changed, 34 insertions(+), 35 deletions(-)
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index fe326a3..938108f 100644
--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -504,28 +504,27 @@ static void __init print_local_APIC(void *dummy)
unsigned int i, v, ver, maxlvt;
u64 icr;
- printk(KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n",
- smp_processor_id(), hard_smp_processor_id());
+ pr_debug("printing local APIC contents on CPU#%d/%d:\n",
+ smp_processor_id(), hard_smp_processor_id());
v = apic_read(APIC_ID);
- printk(KERN_INFO "... APIC ID: %08x (%01x)\n", v, read_apic_id());
+ pr_info("... APIC ID: %08x (%01x)\n", v, read_apic_id());
v = apic_read(APIC_LVR);
- printk(KERN_INFO "... APIC VERSION: %08x\n", v);
+ pr_info("... APIC VERSION: %08x\n", v);
ver = GET_APIC_VERSION(v);
maxlvt = lapic_get_maxlvt();
v = apic_read(APIC_TASKPRI);
- printk(KERN_DEBUG "... APIC TASKPRI: %08x (%02x)\n",
- v, v & APIC_TPRI_MASK);
+ pr_debug("... APIC TASKPRI: %08x (%02x)\n", v, v & APIC_TPRI_MASK);
/* !82489DX */
if (APIC_INTEGRATED(ver)) {
if (!APIC_XAPIC(ver)) {
v = apic_read(APIC_ARBPRI);
- printk(KERN_DEBUG "... APIC ARBPRI: %08x (%02x)\n", v,
- v & APIC_ARBPRI_MASK);
+ pr_debug("... APIC ARBPRI: %08x (%02x)\n",
+ v, v & APIC_ARBPRI_MASK);
}
v = apic_read(APIC_PROCPRI);
- printk(KERN_DEBUG "... APIC PROCPRI: %08x\n", v);
+ pr_debug("... APIC PROCPRI: %08x\n", v);
}
/*
@@ -534,23 +533,23 @@ static void __init print_local_APIC(void *dummy)
*/
if (!APIC_INTEGRATED(ver) || maxlvt == 3) {
v = apic_read(APIC_RRR);
- printk(KERN_DEBUG "... APIC RRR: %08x\n", v);
+ pr_debug("... APIC RRR: %08x\n", v);
}
v = apic_read(APIC_LDR);
- printk(KERN_DEBUG "... APIC LDR: %08x\n", v);
+ pr_debug("... APIC LDR: %08x\n", v);
if (!x2apic_enabled()) {
v = apic_read(APIC_DFR);
- printk(KERN_DEBUG "... APIC DFR: %08x\n", v);
+ pr_debug("... APIC DFR: %08x\n", v);
}
v = apic_read(APIC_SPIV);
- printk(KERN_DEBUG "... APIC SPIV: %08x\n", v);
+ pr_debug("... APIC SPIV: %08x\n", v);
- printk(KERN_DEBUG "... APIC ISR field:\n");
+ pr_debug("... APIC ISR field:\n");
print_APIC_field(APIC_ISR);
- printk(KERN_DEBUG "... APIC TMR field:\n");
+ pr_debug("... APIC TMR field:\n");
print_APIC_field(APIC_TMR);
- printk(KERN_DEBUG "... APIC IRR field:\n");
+ pr_debug("... APIC IRR field:\n");
print_APIC_field(APIC_IRR);
/* !82489DX */
@@ -560,48 +559,48 @@ static void __init print_local_APIC(void *dummy)
apic_write(APIC_ESR, 0);
v = apic_read(APIC_ESR);
- printk(KERN_DEBUG "... APIC ESR: %08x\n", v);
+ pr_debug("... APIC ESR: %08x\n", v);
}
icr = apic_icr_read();
- printk(KERN_DEBUG "... APIC ICR: %08x\n", (u32)icr);
- printk(KERN_DEBUG "... APIC ICR2: %08x\n", (u32)(icr >> 32));
+ pr_debug("... APIC ICR: %08x\n", (u32)icr);
+ pr_debug("... APIC ICR2: %08x\n", (u32)(icr >> 32));
v = apic_read(APIC_LVTT);
- printk(KERN_DEBUG "... APIC LVTT: %08x\n", v);
+ pr_debug("... APIC LVTT: %08x\n", v);
if (maxlvt > 3) {
/* PC is LVT#4. */
v = apic_read(APIC_LVTPC);
- printk(KERN_DEBUG "... APIC LVTPC: %08x\n", v);
+ pr_debug("... APIC LVTPC: %08x\n", v);
}
v = apic_read(APIC_LVT0);
- printk(KERN_DEBUG "... APIC LVT0: %08x\n", v);
+ pr_debug("... APIC LVT0: %08x\n", v);
v = apic_read(APIC_LVT1);
- printk(KERN_DEBUG "... APIC LVT1: %08x\n", v);
+ pr_debug("... APIC LVT1: %08x\n", v);
if (maxlvt > 2) {
/* ERR is LVT#3. */
v = apic_read(APIC_LVTERR);
- printk(KERN_DEBUG "... APIC LVTERR: %08x\n", v);
+ pr_debug("... APIC LVTERR: %08x\n", v);
}
v = apic_read(APIC_TMICT);
- printk(KERN_DEBUG "... APIC TMICT: %08x\n", v);
+ pr_debug("... APIC TMICT: %08x\n", v);
v = apic_read(APIC_TMCCT);
- printk(KERN_DEBUG "... APIC TMCCT: %08x\n", v);
+ pr_debug("... APIC TMCCT: %08x\n", v);
v = apic_read(APIC_TDCR);
- printk(KERN_DEBUG "... APIC TDCR: %08x\n", v);
+ pr_debug("... APIC TDCR: %08x\n", v);
if (boot_cpu_has(X86_FEATURE_EXTAPIC)) {
v = apic_read(APIC_EFEAT);
maxlvt = (v >> 16) & 0xff;
- printk(KERN_DEBUG "... APIC EFEAT: %08x\n", v);
+ pr_debug("... APIC EFEAT: %08x\n", v);
v = apic_read(APIC_ECTRL);
- printk(KERN_DEBUG "... APIC ECTRL: %08x\n", v);
+ pr_debug("... APIC ECTRL: %08x\n", v);
for (i = 0; i < maxlvt; i++) {
v = apic_read(APIC_EILVTn(i));
- printk(KERN_DEBUG "... APIC EILVT%d: %08x\n", i, v);
+ pr_debug("... APIC EILVT%d: %08x\n", i, v);
}
}
pr_cont("\n");
@@ -631,15 +630,15 @@ static void __init print_PIC(void)
if (!nr_legacy_irqs())
return;
- printk(KERN_DEBUG "\nprinting PIC contents\n");
+ pr_debug("\nprinting PIC contents\n");
raw_spin_lock_irqsave(&i8259A_lock, flags);
v = inb(0xa1) << 8 | inb(0x21);
- printk(KERN_DEBUG "... PIC IMR: %04x\n", v);
+ pr_debug("... PIC IMR: %04x\n", v);
v = inb(0xa0) << 8 | inb(0x20);
- printk(KERN_DEBUG "... PIC IRR: %04x\n", v);
+ pr_debug("... PIC IRR: %04x\n", v);
outb(0x0b, 0xa0);
outb(0x0b, 0x20);
@@ -649,10 +648,10 @@ static void __init print_PIC(void)
raw_spin_unlock_irqrestore(&i8259A_lock, flags);
- printk(KERN_DEBUG "... PIC ISR: %04x\n", v);
+ pr_debug("... PIC ISR: %04x\n", v);
v = inb(0x4d1) << 8 | inb(0x4d0);
- printk(KERN_DEBUG "... PIC ELCR: %04x\n", v);
+ pr_debug("... PIC ELCR: %04x\n", v);
}
static int show_lapic __initdata = 1;
next prev parent reply other threads:[~2014-12-19 14:09 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 8:11 [Patch Part1 v3 00/20] Prepare for enabling hierarchy irqdomain on x86 Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 01/20] ACPI, irq, x86: Get rid of special handling of GSI for ACPI SCI Jiang Liu
2014-11-05 16:34 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:12 ` tip-bot for Jiang Liu
2014-12-19 14:05 ` [tip:x86/apic] x86, irq, acpi: " tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 02/20] x86, irq, ACPI: Fix building warning of unused code Jiang Liu
2014-11-05 16:34 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:13 ` tip-bot for Jiang Liu
2014-12-19 14:01 ` tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 03/20] x86, irq: Kill fourth parameter of IO_APIC_get_PCI_irq_vector() Jiang Liu
2014-11-05 16:35 ` [tip:x86/apic] x86, irq: Kill useless parameter 'irq_attr' " tip-bot for Jiang Liu
2014-11-05 17:13 ` tip-bot for Jiang Liu
2014-12-19 14:06 ` tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 04/20] x86, irq: Convert irq_2_pin list to generic list Jiang Liu
2014-11-05 16:35 ` [tip:x86/apic] " tip-bot for Yinghai Lu
2014-11-05 17:13 ` tip-bot for Yinghai Lu
2014-12-19 14:06 ` tip-bot for Yinghai Lu
2014-10-27 8:11 ` [Patch Part1 v3 05/20] x86, irq: Refine hw_irq.h to prepare for irqdomain support Jiang Liu
2014-11-05 16:35 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:13 ` tip-bot for Jiang Liu
2014-12-19 14:06 ` tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 06/20] x86, irq: Rename local APIC related functions in io_apic.c as apic_xxx() Jiang Liu
2014-11-05 16:36 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:14 ` tip-bot for Jiang Liu
2014-12-19 14:07 ` tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 07/20] x86, irq: Protect __clear_irq_vector() with vector_lock Jiang Liu
2014-11-05 16:36 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:14 ` tip-bot for Jiang Liu
2014-12-19 14:07 ` tip-bot for Jiang Liu
2014-10-27 8:11 ` [Patch Part1 v3 08/20] x86, irq: Introduce helpers to access struct irq_cfg Jiang Liu
2014-11-05 16:36 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:14 ` tip-bot for Jiang Liu
2014-12-19 14:07 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 09/20] x86, irq: Move local APIC related code from io_apic.c into vector.c Jiang Liu
2014-11-05 16:37 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:14 ` tip-bot for Jiang Liu
2014-12-19 14:08 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 10/20] x86, irq: Replace printk(KERN_LVL) with pr_lvl() utilities Jiang Liu
2014-11-05 16:37 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 16:47 ` Joe Perches
2014-11-05 17:15 ` tip-bot for Jiang Liu
2014-12-19 14:08 ` tip-bot for Jiang Liu [this message]
2014-10-27 8:12 ` [Patch Part1 v3 11/20] x86, irq: Move PCI MSI related code from io_apic.c into msi.c Jiang Liu
2014-11-05 16:38 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:15 ` tip-bot for Jiang Liu
2014-12-19 14:08 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 12/20] x86, irq: Move HT IRQ related code from io_apic.c into htirq.c Jiang Liu
2014-11-05 16:38 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:16 ` tip-bot for Jiang Liu
2014-12-19 14:09 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 13/20] x86, irq: Move IOAPIC related declarations from hw_irq.h into io_apic.h Jiang Liu
2014-11-05 16:38 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:16 ` tip-bot for Jiang Liu
2014-12-19 14:09 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 14/20] x86, irq: Move IRQ initialization routines from io_apic.c into vector.c Jiang Liu
2014-11-05 16:38 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:16 ` tip-bot for Jiang Liu
2014-12-19 14:09 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 15/20] x86, irq: Make MSI and HT_IRQ indepenent of X86_IO_APIC Jiang Liu
2014-11-05 16:39 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:16 ` tip-bot for Jiang Liu
2014-12-19 14:10 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 16/20] x86, irq: Use helpers to access irq_cfg data structure associated with IRQ Jiang Liu
2014-11-05 16:39 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:17 ` tip-bot for Jiang Liu
2014-12-19 14:10 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 17/20] x86: irq_remapping: " Jiang Liu
2014-11-05 16:39 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:17 ` tip-bot for Jiang Liu
2014-12-19 14:10 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 18/20] iommu/vt-d: " Jiang Liu
2014-11-05 16:39 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:17 ` tip-bot for Jiang Liu
2014-12-19 14:11 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 19/20] iommu/amd: " Jiang Liu
2014-11-05 16:40 ` [tip:x86/apic] " tip-bot for Jiang Liu
2014-11-05 17:17 ` tip-bot for Jiang Liu
2014-12-19 14:11 ` tip-bot for Jiang Liu
2014-10-27 8:12 ` [Patch Part1 v3 20/20] x86, irq: Fix link error of undefined reference to send_cleanup_vector Jiang Liu
2014-11-05 16:34 ` [tip:x86/apic] x86, irq: Provide empty send_cleanup_vector() stub for UP builds tip-bot for Jiang Liu
2014-11-05 17:12 ` tip-bot for Jiang Liu
2014-12-19 14:00 ` tip-bot for Jiang Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-849d3569bbaf2dfdea41a6073bc0e25a0578c380@git.kernel.org \
--to=tipbot@zytor.com \
--cc=benh@kernel.crashing.org \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=jiang.liu@linux.intel.com \
--cc=joro@8bytes.org \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rdunlap@infradead.org \
--cc=rjw@rjwysocki.net \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox