Re: [PATCH] genirq: Make sure the affinity to be set is not empty

2019-01-01 Thread Srinivas Ramana
On 12/20/2018 7:05 PM, Srinivas Ramana wrote: If the default_affinity is managed/initialized by a system and all the cpus present in irq_default_affinity are hotplugged out we may end up passing a cpumask of 0 to irq_do_set_affinity(). Fix this by falling back to cpu_online_mask in case the calc

[PATCH] genirq: Make sure the affinity to be set is not empty

2018-12-20 Thread Srinivas Ramana
If the default_affinity is managed/initialized by a system and all the cpus present in irq_default_affinity are hotplugged out we may end up passing a cpumask of 0 to irq_do_set_affinity(). Fix this by falling back to cpu_online_mask in case the calculated affinity becomes zero. Signed-off-by: Sr