get_user is not needed inside critical section. Move
it outside to avoid kernel crash due to sleeping
function called from invalid context.
Change-Id: I29a54dca6620dc75356067ce6ff9a0931b4d0724
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
/* Copy the same power values for all the cpus in the cpumask
* argp->cpumask within the cluster (argp->cluster)
*/
- spin_lock(&update_lock);
get_user(cpumask, &argp->cpumask);
+ spin_lock(&update_lock);
for (i = 0; i < MAX_CORES_PER_CLUSTER; i++, cpumask >>= 1) {
if (!(cpumask & 0x01))
continue;