Skip to content

Commit 3488007

Browse files
committed
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: convert Dprintk to pr_debug
2 parents 47c317a + cfc1b9a commit 3488007

File tree

8 files changed

+44
-52
lines changed

8 files changed

+44
-52
lines changed

arch/x86/kernel/acpi/boot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ void __init mp_config_acpi_legacy_irqs(void)
10211021
mp_bus_id_to_type[MP_ISA_BUS] = MP_BUS_ISA;
10221022
#endif
10231023
set_bit(MP_ISA_BUS, mp_bus_not_pci);
1024-
Dprintk("Bus #%d is ISA\n", MP_ISA_BUS);
1024+
pr_debug("Bus #%d is ISA\n", MP_ISA_BUS);
10251025

10261026
#ifdef CONFIG_X86_ES7000
10271027
/*
@@ -1127,8 +1127,8 @@ int mp_register_gsi(u32 gsi, int triggering, int polarity)
11271127
return gsi;
11281128
}
11291129
if (test_bit(ioapic_pin, mp_ioapic_routing[ioapic].pin_programmed)) {
1130-
Dprintk(KERN_DEBUG "Pin %d-%d already programmed\n",
1131-
mp_ioapic_routing[ioapic].apic_id, ioapic_pin);
1130+
pr_debug(KERN_DEBUG "Pin %d-%d already programmed\n",
1131+
mp_ioapic_routing[ioapic].apic_id, ioapic_pin);
11321132
#ifdef CONFIG_X86_32
11331133
return (gsi < IRQ_COMPRESSION_START ? gsi : gsi_to_irq[gsi]);
11341134
#else

arch/x86/kernel/cpu/perfctr-watchdog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static void write_watchdog_counter(unsigned int perfctr_msr,
250250

251251
do_div(count, nmi_hz);
252252
if(descr)
253-
Dprintk("setting %s to -0x%08Lx\n", descr, count);
253+
pr_debug("setting %s to -0x%08Lx\n", descr, count);
254254
wrmsrl(perfctr_msr, 0 - count);
255255
}
256256

@@ -261,7 +261,7 @@ static void write_watchdog_counter32(unsigned int perfctr_msr,
261261

262262
do_div(count, nmi_hz);
263263
if(descr)
264-
Dprintk("setting %s to -0x%08Lx\n", descr, count);
264+
pr_debug("setting %s to -0x%08Lx\n", descr, count);
265265
wrmsr(perfctr_msr, (u32)(-count), 0);
266266
}
267267

arch/x86/kernel/setup_percpu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ static void __init setup_node_to_cpumask_map(void)
227227
/* allocate the map */
228228
map = alloc_bootmem_low(nr_node_ids * sizeof(cpumask_t));
229229

230-
Dprintk(KERN_DEBUG "Node to cpumask map at %p for %d nodes\n",
231-
map, nr_node_ids);
230+
pr_debug(KERN_DEBUG "Node to cpumask map at %p for %d nodes\n",
231+
map, nr_node_ids);
232232

233233
/* node_to_cpumask() will now work */
234234
node_to_cpumask_map = map;
@@ -248,7 +248,7 @@ void __cpuinit numa_set_node(int cpu, int node)
248248
per_cpu(x86_cpu_to_node_map, cpu) = node;
249249

250250
else
251-
Dprintk(KERN_INFO "Setting node for non-present cpu %d\n", cpu);
251+
pr_debug("Setting node for non-present cpu %d\n", cpu);
252252
}
253253

254254
void __cpuinit numa_clear_node(int cpu)

arch/x86/kernel/smpboot.c

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void __cpuinit smp_callin(void)
216216
panic("%s: phys CPU#%d, CPU#%d already present??\n", __func__,
217217
phys_id, cpuid);
218218
}
219-
Dprintk("CPU#%d (phys ID: %d) waiting for CALLOUT\n", cpuid, phys_id);
219+
pr_debug("CPU#%d (phys ID: %d) waiting for CALLOUT\n", cpuid, phys_id);
220220

221221
/*
222222
* STARTUP IPIs are fragile beasts as they might sometimes
@@ -251,7 +251,7 @@ static void __cpuinit smp_callin(void)
251251
* boards)
252252
*/
253253

254-
Dprintk("CALLIN, before setup_local_APIC().\n");
254+
pr_debug("CALLIN, before setup_local_APIC().\n");
255255
smp_callin_clear_local_apic();
256256
setup_local_APIC();
257257
end_local_APIC_setup();
@@ -266,7 +266,7 @@ static void __cpuinit smp_callin(void)
266266
local_irq_enable();
267267
calibrate_delay();
268268
local_irq_disable();
269-
Dprintk("Stack at about %p\n", &cpuid);
269+
pr_debug("Stack at about %p\n", &cpuid);
270270

271271
/*
272272
* Save our processor parameters
@@ -513,7 +513,7 @@ static void impress_friends(void)
513513
/*
514514
* Allow the user to impress friends.
515515
*/
516-
Dprintk("Before bogomips.\n");
516+
pr_debug("Before bogomips.\n");
517517
for_each_possible_cpu(cpu)
518518
if (cpu_isset(cpu, cpu_callout_map))
519519
bogosum += cpu_data(cpu).loops_per_jiffy;
@@ -523,7 +523,7 @@ static void impress_friends(void)
523523
bogosum/(500000/HZ),
524524
(bogosum/(5000/HZ))%100);
525525

526-
Dprintk("Before bogocount - setting activated=1.\n");
526+
pr_debug("Before bogocount - setting activated=1.\n");
527527
}
528528

529529
static inline void __inquire_remote_apic(int apicid)
@@ -585,7 +585,7 @@ wakeup_secondary_cpu(int logical_apicid, unsigned long start_eip)
585585
/* Kick the second */
586586
apic_write(APIC_ICR, APIC_DM_NMI | APIC_DEST_LOGICAL);
587587

588-
Dprintk("Waiting for send to finish...\n");
588+
pr_debug("Waiting for send to finish...\n");
589589
send_status = safe_apic_wait_icr_idle();
590590

591591
/*
@@ -596,7 +596,7 @@ wakeup_secondary_cpu(int logical_apicid, unsigned long start_eip)
596596
if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */
597597
apic_write(APIC_ESR, 0);
598598
accept_status = (apic_read(APIC_ESR) & 0xEF);
599-
Dprintk("NMI sent.\n");
599+
pr_debug("NMI sent.\n");
600600

601601
if (send_status)
602602
printk(KERN_ERR "APIC never delivered???\n");
@@ -631,7 +631,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip)
631631
apic_read(APIC_ESR);
632632
}
633633

634-
Dprintk("Asserting INIT.\n");
634+
pr_debug("Asserting INIT.\n");
635635

636636
/*
637637
* Turn INIT on target chip
@@ -644,20 +644,20 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip)
644644
apic_write(APIC_ICR,
645645
APIC_INT_LEVELTRIG | APIC_INT_ASSERT | APIC_DM_INIT);
646646

647-
Dprintk("Waiting for send to finish...\n");
647+
pr_debug("Waiting for send to finish...\n");
648648
send_status = safe_apic_wait_icr_idle();
649649

650650
mdelay(10);
651651

652-
Dprintk("Deasserting INIT.\n");
652+
pr_debug("Deasserting INIT.\n");
653653

654654
/* Target chip */
655655
apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(phys_apicid));
656656

657657
/* Send IPI */
658658
apic_write(APIC_ICR, APIC_INT_LEVELTRIG | APIC_DM_INIT);
659659

660-
Dprintk("Waiting for send to finish...\n");
660+
pr_debug("Waiting for send to finish...\n");
661661
send_status = safe_apic_wait_icr_idle();
662662

663663
mb();
@@ -684,14 +684,14 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip)
684684
/*
685685
* Run STARTUP IPI loop.
686686
*/
687-
Dprintk("#startup loops: %d.\n", num_starts);
687+
pr_debug("#startup loops: %d.\n", num_starts);
688688

689689
for (j = 1; j <= num_starts; j++) {
690-
Dprintk("Sending STARTUP #%d.\n", j);
690+
pr_debug("Sending STARTUP #%d.\n", j);
691691
if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */
692692
apic_write(APIC_ESR, 0);
693693
apic_read(APIC_ESR);
694-
Dprintk("After apic_write.\n");
694+
pr_debug("After apic_write.\n");
695695

696696
/*
697697
* STARTUP IPI
@@ -709,9 +709,9 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip)
709709
*/
710710
udelay(300);
711711

712-
Dprintk("Startup point 1.\n");
712+
pr_debug("Startup point 1.\n");
713713

714-
Dprintk("Waiting for send to finish...\n");
714+
pr_debug("Waiting for send to finish...\n");
715715
send_status = safe_apic_wait_icr_idle();
716716

717717
/*
@@ -724,7 +724,7 @@ wakeup_secondary_cpu(int phys_apicid, unsigned long start_eip)
724724
if (send_status || accept_status)
725725
break;
726726
}
727-
Dprintk("After Startup.\n");
727+
pr_debug("After Startup.\n");
728728

729729
if (send_status)
730730
printk(KERN_ERR "APIC never delivered???\n");
@@ -875,7 +875,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
875875

876876
if (get_uv_system_type() != UV_NON_UNIQUE_APIC) {
877877

878-
Dprintk("Setting warm reset code and vector.\n");
878+
pr_debug("Setting warm reset code and vector.\n");
879879

880880
store_NMI_vector(&nmi_high, &nmi_low);
881881

@@ -896,9 +896,9 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
896896
/*
897897
* allow APs to start initializing.
898898
*/
899-
Dprintk("Before Callout %d.\n", cpu);
899+
pr_debug("Before Callout %d.\n", cpu);
900900
cpu_set(cpu, cpu_callout_map);
901-
Dprintk("After Callout %d.\n", cpu);
901+
pr_debug("After Callout %d.\n", cpu);
902902

903903
/*
904904
* Wait 5s total for a response
@@ -911,10 +911,10 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
911911

912912
if (cpu_isset(cpu, cpu_callin_map)) {
913913
/* number CPUs logically, starting from 1 (BSP is 0) */
914-
Dprintk("OK.\n");
914+
pr_debug("OK.\n");
915915
printk(KERN_INFO "CPU%d: ", cpu);
916916
print_cpu_info(&cpu_data(cpu));
917-
Dprintk("CPU has booted.\n");
917+
pr_debug("CPU has booted.\n");
918918
} else {
919919
boot_error = 1;
920920
if (*((volatile unsigned char *)trampoline_base)
@@ -959,7 +959,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
959959

960960
WARN_ON(irqs_disabled());
961961

962-
Dprintk("++++++++++++++++++++=_---CPU UP %u\n", cpu);
962+
pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu);
963963

964964
if (apicid == BAD_APICID || apicid == boot_cpu_physical_apicid ||
965965
!physid_isset(apicid, phys_cpu_present_map)) {
@@ -971,7 +971,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
971971
* Already booted CPU?
972972
*/
973973
if (cpu_isset(cpu, cpu_callin_map)) {
974-
Dprintk("do_boot_cpu %d Already started\n", cpu);
974+
pr_debug("do_boot_cpu %d Already started\n", cpu);
975975
return -ENOSYS;
976976
}
977977

@@ -998,7 +998,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
998998
err = do_boot_cpu(apicid, cpu);
999999
#endif
10001000
if (err) {
1001-
Dprintk("do_boot_cpu failed %d\n", err);
1001+
pr_debug("do_boot_cpu failed %d\n", err);
10021002
return -EIO;
10031003
}
10041004

@@ -1202,7 +1202,7 @@ void __init native_smp_prepare_boot_cpu(void)
12021202

12031203
void __init native_smp_cpus_done(unsigned int max_cpus)
12041204
{
1205-
Dprintk("Boot done.\n");
1205+
pr_debug("Boot done.\n");
12061206

12071207
impress_friends();
12081208
smp_checks();

arch/x86/mm/numa_64.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#include <asm/acpi.h>
2121
#include <asm/k8.h>
2222

23-
#ifndef Dprintk
24-
#define Dprintk(x...)
25-
#endif
26-
2723
struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
2824
EXPORT_SYMBOL(node_data);
2925

arch/x86/pci/early.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
/* Direct PCI access. This is used for PCI accesses in early boot before
88
the PCI subsystem works. */
99

10-
#define PDprintk(x...)
11-
1210
u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset)
1311
{
1412
u32 v;
1513
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
1614
v = inl(0xcfc);
1715
if (v != 0xffffffff)
18-
PDprintk("%x reading 4 from %x: %x\n", slot, offset, v);
16+
pr_debug("%x reading 4 from %x: %x\n", slot, offset, v);
1917
return v;
2018
}
2119

@@ -24,7 +22,7 @@ u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset)
2422
u8 v;
2523
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
2624
v = inb(0xcfc + (offset&3));
27-
PDprintk("%x reading 1 from %x: %x\n", slot, offset, v);
25+
pr_debug("%x reading 1 from %x: %x\n", slot, offset, v);
2826
return v;
2927
}
3028

@@ -33,28 +31,28 @@ u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset)
3331
u16 v;
3432
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
3533
v = inw(0xcfc + (offset&2));
36-
PDprintk("%x reading 2 from %x: %x\n", slot, offset, v);
34+
pr_debug("%x reading 2 from %x: %x\n", slot, offset, v);
3735
return v;
3836
}
3937

4038
void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset,
4139
u32 val)
4240
{
43-
PDprintk("%x writing to %x: %x\n", slot, offset, val);
41+
pr_debug("%x writing to %x: %x\n", slot, offset, val);
4442
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
4543
outl(val, 0xcfc);
4644
}
4745

4846
void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val)
4947
{
50-
PDprintk("%x writing to %x: %x\n", slot, offset, val);
48+
pr_debug("%x writing to %x: %x\n", slot, offset, val);
5149
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
5250
outb(val, 0xcfc + (offset&3));
5351
}
5452

5553
void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val)
5654
{
57-
PDprintk("%x writing to %x: %x\n", slot, offset, val);
55+
pr_debug("%x writing to %x: %x\n", slot, offset, val);
5856
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
5957
outw(val, 0xcfc + (offset&2));
6058
}
@@ -71,7 +69,7 @@ void early_dump_pci_device(u8 bus, u8 slot, u8 func)
7169
int j;
7270
u32 val;
7371

74-
printk("PCI: %02x:%02x:%02x", bus, slot, func);
72+
printk(KERN_INFO "PCI: %02x:%02x:%02x", bus, slot, func);
7573

7674
for (i = 0; i < 256; i += 4) {
7775
if (!(i & 0x0f))

include/asm-x86/apic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
#define ARCH_APICTIMER_STOPS_ON_C3 1
1414

15-
#define Dprintk printk
16-
1715
/*
1816
* Debugging macros
1917
*/

include/asm-x86/mach-default/smpboot_hooks.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
1212
{
1313
CMOS_WRITE(0xa, 0xf);
1414
local_flush_tlb();
15-
Dprintk("1.\n");
15+
pr_debug("1.\n");
1616
*((volatile unsigned short *) TRAMPOLINE_HIGH) = start_eip >> 4;
17-
Dprintk("2.\n");
17+
pr_debug("2.\n");
1818
*((volatile unsigned short *) TRAMPOLINE_LOW) = start_eip & 0xf;
19-
Dprintk("3.\n");
19+
pr_debug("3.\n");
2020
}
2121

2222
static inline void smpboot_restore_warm_reset_vector(void)

0 commit comments

Comments
 (0)