Files
linux-legacy/arch/x86/kernel
Rusty Russell e06b1b56f9 x86: Correct behaviour of irq affinity
Impact: get correct smp_affinity as user requested

The effect of setting desc->affinity (ie. from userspace via sysfs) has
varied over time.  In 2.6.27, the 32-bit code anded the value with
cpu_online_map, and both 32 and 64-bit did that anding whenever a cpu
was unplugged.

2.6.29 consolidated this into one routine (and fixed hotplug) but
introduced another variation: anding the affinity with cfg->domain.

We should just set it to what the user said - if possible.

(cpu_mask_to_apicid_and already takes cpu_online_mask into account)

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <49C94DDF.2010703@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-25 18:48:29 +01:00
..
2009-02-22 20:05:19 +01:00
2009-01-20 12:29:20 +09:00
2009-03-15 07:03:15 +01:00
…
2009-03-11 10:29:28 +01:00
2009-03-11 10:29:28 +01:00
2008-12-12 11:08:42 +01:00
2009-02-10 13:13:23 +01:00
2009-03-21 16:56:10 +05:30
2009-02-23 00:08:11 +01:00
2008-12-31 18:07:42 -05:00
2009-03-21 16:57:04 +05:30
2009-02-09 12:16:05 +01:00
2009-03-13 02:36:52 +01:00
…
2009-03-21 16:55:45 +05:30
2009-02-17 17:52:44 +01:00
2009-02-23 00:08:11 +01:00
2009-01-02 17:46:24 +01:00
2009-02-23 00:08:11 +01:00
2009-01-12 11:22:50 +01:00
2009-01-20 17:14:28 +01:00
2009-03-21 17:01:25 +05:30
…
2009-03-10 09:55:18 +01:00
2009-03-11 10:29:28 +01:00
2009-03-21 16:56:37 +05:30
2009-02-17 17:52:44 +01:00
2009-01-31 04:21:18 +01:00
…
…
…
2009-02-23 00:08:11 +01:00
…
…
2009-03-21 16:55:24 +05:30
2009-02-17 17:52:44 +01:00
2009-02-26 06:40:06 +01:00