Skip to content

Commit

Permalink
x86: rename ->ESR_DISABLE to ->disable_esr
Browse files Browse the repository at this point in the history
the ->ESR_DISABLE shouting variant was used to enable the esr_disable
macro wrappers. Those ugly macros are removed now so we can rename
->ESR_DISABLE to ->disable_esr

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jan 28, 2009
1 parent f6f52ba commit 08125d3
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/genapic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct genapic {

const struct cpumask *(*target_cpus)(void);

int ESR_DISABLE;
int disable_esr;

int apic_destination_logical;
unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid);
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ static void __cpuinit lapic_setup_esr(void)
return;
}

if (apic->ESR_DISABLE) {
if (apic->disable_esr) {
/*
* Something untraceable is creating bad interrupts on
* secondary quads ... for the moment, just leave the
Expand Down Expand Up @@ -1157,7 +1157,7 @@ void __cpuinit setup_local_APIC(void)

#ifdef CONFIG_X86_32
/* Pound the ESR really hard over the head with a big hammer - mbligh */
if (lapic_is_integrated() && apic->ESR_DISABLE) {
if (lapic_is_integrated() && apic->disable_esr) {
apic_write(APIC_ESR, 0);
apic_write(APIC_ESR, 0);
apic_write(APIC_ESR, 0);
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/genapic_flat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct genapic apic_flat = {
.irq_dest_mode = (APIC_DEST_LOGICAL != 0),

.target_cpus = flat_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = 0,
.check_apicid_used = NULL,
.check_apicid_present = NULL,
Expand Down Expand Up @@ -330,7 +330,7 @@ struct genapic apic_physflat = {
.irq_dest_mode = (APIC_DEST_PHYSICAL != 0),

.target_cpus = physflat_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = 0,
.check_apicid_used = NULL,
.check_apicid_present = NULL,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/genx2apic_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ struct genapic apic_x2apic_cluster = {
.irq_dest_mode = (APIC_DEST_LOGICAL != 0),

.target_cpus = x2apic_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = 0,
.check_apicid_used = NULL,
.check_apicid_present = NULL,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/genx2apic_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct genapic apic_x2apic_phys = {
.irq_dest_mode = (APIC_DEST_PHYSICAL != 0),

.target_cpus = x2apic_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = 0,
.check_apicid_used = NULL,
.check_apicid_present = NULL,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/genx2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ struct genapic apic_x2apic_uv_x = {
.irq_dest_mode = (APIC_DEST_PHYSICAL != 0),

.target_cpus = uv_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = 0,
.check_apicid_used = NULL,
.check_apicid_present = NULL,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/bigsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct genapic apic_bigsmp = {
.irq_dest_mode = 0,

.target_cpus = bigsmp_target_cpus,
.ESR_DISABLE = 1,
.disable_esr = 1,
.apic_destination_logical = APIC_DEST_LOGICAL,
.check_apicid_used = check_apicid_used,
.check_apicid_present = check_apicid_present,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct genapic apic_default = {
.irq_dest_mode = 1,

.target_cpus = default_target_cpus,
.ESR_DISABLE = 0,
.disable_esr = 0,
.apic_destination_logical = APIC_DEST_LOGICAL,
.check_apicid_used = check_apicid_used,
.check_apicid_present = check_apicid_present,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/es7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct genapic apic_es7000 = {
.irq_dest_mode = 0,

.target_cpus = es7000_target_cpus,
.ESR_DISABLE = 1,
.disable_esr = 1,
.apic_destination_logical = APIC_DEST_LOGICAL,
.check_apicid_used = check_apicid_used,
.check_apicid_present = check_apicid_present,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/numaq.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct genapic apic_numaq = {
.irq_dest_mode = 0,

.target_cpus = numaq_target_cpus,
.ESR_DISABLE = 1,
.disable_esr = 1,
.apic_destination_logical = APIC_DEST_LOGICAL,
.check_apicid_used = check_apicid_used,
.check_apicid_present = check_apicid_present,
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/summit.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct genapic apic_summit = {
.irq_dest_mode = 1,

.target_cpus = summit_target_cpus,
.ESR_DISABLE = 1,
.disable_esr = 1,
.apic_destination_logical = APIC_DEST_LOGICAL,
.check_apicid_used = check_apicid_used,
.check_apicid_present = check_apicid_present,
Expand Down

0 comments on commit 08125d3

Please sign in to comment.