|
@@ -515,7 +515,7 @@ static int meta_intc_set_affinity(struct irq_data *data,
|
|
* one cpu (the interrupt code doesn't support it), so we just
|
|
* one cpu (the interrupt code doesn't support it), so we just
|
|
* pick the first cpu we find in 'cpumask'.
|
|
* pick the first cpu we find in 'cpumask'.
|
|
*/
|
|
*/
|
|
- cpu = cpumask_any(cpumask);
|
|
|
|
|
|
+ cpu = cpumask_any_and(cpumask, cpu_online_mask);
|
|
thread = cpu_2_hwthread_id[cpu];
|
|
thread = cpu_2_hwthread_id[cpu];
|
|
|
|
|
|
metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr);
|
|
metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr);
|