From: Viresh Kumar Date: Wed, 19 Jun 2013 04:46:55 +0000 (+0530) Subject: cpufreq: make sure frequency transitions are serialized X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~19^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c30ed532cf798a8d924562f2f44d03d7652f7a7;p=pandora-kernel.git cpufreq: make sure frequency transitions are serialized Whenever we are changing frequency of a cpu, we are calling PRECHANGE and POSTCHANGE notifiers. They must be serialized. i.e. PRECHANGE or POSTCHANGE shouldn't be called twice contiguously. This can happen due to bugs in users of __cpufreq_driver_target() or actual cpufreq drivers who are sending these notifiers. This patch adds some protection against this. Now, we keep track of the last transaction and see if something went wrong. Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed