From: Konstantin Khlebnikov Date: Fri, 14 Dec 2012 23:22:02 +0000 (+0100) Subject: cpufreq / stats: fix race between stats allocation and first usage X-Git-Tag: v3.8-rc3~9^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56836fb4dab8fe906b934b231b04c33c180f8da5;p=pandora-kernel.git cpufreq / stats: fix race between stats allocation and first usage This patch forces complete struct cpufreq_stats allocation for all cpus before registering CPUFREQ_TRANSITION_NOTIFIER notifier, otherwise in some conditions cpufreq_stat_notifier_trans() can be called in the middle of stats allocation, in this case cpufreq_stats_table already exists, but stat->freq_table is NULL. Signed-off-by: Konstantin Khlebnikov Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed