diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 23:13:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:18 -0500 |
commit | 0b06e734bff7554c31eac4aad2fc9be4adb7c1c1 (patch) | |
tree | 52b3f9ccf6d85e503cf949c888ded6722c66e3a3 /arch/x86/kernel/genx2apic_uv_x.c | |
parent | 08125d3edab90644724652eedec3e219e3e0f2e7 (diff) |
x86: clean up the APIC_DEST_LOGICAL logic
Impact: cleanup
The bigsmp and es7000 subarchitectures un-defined APIC_DEST_LOGICAL in
a rather nasty way by re-defining it to zero. That is infinitely
fragile and makes it very hard to see what to code really does in
a given context. The very same constant has different meanings and
values - depending on which subarch is enabled.
Untangle this mess by never undefining the constant, but instead
propagating the right values into the genapic driver templates.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genx2apic_uv_x.c')
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c index 525b4e480a73..0a756800c11a 100644 --- a/arch/x86/kernel/genx2apic_uv_x.c +++ b/arch/x86/kernel/genx2apic_uv_x.c | |||
@@ -244,11 +244,11 @@ struct genapic apic_x2apic_uv_x = { | |||
244 | .apic_id_registered = uv_apic_id_registered, | 244 | .apic_id_registered = uv_apic_id_registered, |
245 | 245 | ||
246 | .irq_delivery_mode = dest_Fixed, | 246 | .irq_delivery_mode = dest_Fixed, |
247 | .irq_dest_mode = (APIC_DEST_PHYSICAL != 0), | 247 | .irq_dest_mode = 1, /* logical */ |
248 | 248 | ||
249 | .target_cpus = uv_target_cpus, | 249 | .target_cpus = uv_target_cpus, |
250 | .disable_esr = 0, | 250 | .disable_esr = 0, |
251 | .apic_destination_logical = 0, | 251 | .apic_destination_logical = APIC_DEST_LOGICAL, |
252 | .check_apicid_used = NULL, | 252 | .check_apicid_used = NULL, |
253 | .check_apicid_present = NULL, | 253 | .check_apicid_present = NULL, |
254 | 254 | ||