aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel_pmc_ipc.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-18 11:31:01 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-07-21 01:12:02 +0200
commita72c49590a1f9e5d26a71c3f807dbb8958c93513 (patch)
treec8f6bdb5ddc84ca595e68de19c516dcde2e11f36 /drivers/platform/x86/intel_pmc_ipc.c
parent43e0ee361e96229959c2ce1eda1ad9d6b3c191b2 (diff)
cpufreq: governor: Avoid invalid states with additional checks
There can be races where the request has come to a wrong state. For example INIT followed by STOP (instead of START) or START followed by EXIT (instead of STOP). Address these races by making sure the state-machine never gets into any invalid state. Also return an error if an invalid state-transition is requested. Reviewed-and-tested-by: Preeti U Murthy <preeti@linux.vnet.ibm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform/x86/intel_pmc_ipc.c')
0 files changed, 0 insertions, 0 deletions