On 4 September 2014 13:13, Yuantian Tang Yuantian.Tang@freescale.com wrote:
OK, I see. Seems like we don't have choice but make it bool.
I am quite surprised that the architecture doesn't provide such macros.
I have added few powerpc guys (Mostly Maintainers) to check what would it take to get such a macro..
What we want: A routine/macro that returns mask of all CPUs/threads sharing clock line. cpu_core_mask() gives something similar but only for online CPUs, and we want that for online+offline CPUs.
Btw, another powerpc driver is doing this: drivers/cpufreq/powernv-cpufreq.c
base = cpu_first_thread_sibling(policy->cpu); for (i = 0; i < threads_per_core; i++) cpumask_set_cpu(base + i, policy->cpus);
Will this work for you as well ?