Re: [PATCH v3 10/11] perf/x86/intel: Perform rotation on Intel CQM RMIDs

From: Peter Zijlstra
Date: Fri Nov 07 2014 - 07:18:19 EST


On Thu, Nov 06, 2014 at 12:23:21PM +0000, Matt Fleming wrote:
> + /*
> + * Test whether an RMID is free for each package.
> + */
> + preempt_disable();
> + smp_call_function_many(&cqm_cpumask, intel_cqm_stable, NULL, true);
> + preempt_enable();

Same problem again, the current cpu is not included.

Ah, just found we have on_each_cpu_mask(), which is what you want.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/