The effect of setting desc->affinity (ie. from userspace via sysfs) has variedover 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 introducedanother variation: anding the affinity with cfg->domain. Is this right, orshould we just set it to what the user said? Or as now, indicate that we'rerestricting it.

If we should change it, here's what the patch looks like against x86 tip(cpu_mask_to_apicid_and already takes cpu_online_mask into account):