diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 892c848e70a1..c50449c90420 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -251,7 +251,7 @@ void cpufreq_task_stats_init(struct task_struct *p) * cpus */ alloc_size = p->max_states * sizeof(p->time_in_state[0]); - temp = kzalloc(alloc_size, GFP_KERNEL); + temp = kzalloc(alloc_size, GFP_ATOMIC); spin_lock_irqsave(&task_time_in_state_lock, flags); p->time_in_state = temp;