diff options
author | Viresh Kumar <[email protected]> | 2015-07-18 11:31:01 +0530 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2015-07-21 01:12:02 +0200 |
commit | a72c49590a1f9e5d26a71c3f807dbb8958c93513 (patch) | |
tree | c8f6bdb5ddc84ca595e68de19c516dcde2e11f36 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 43e0ee361e96229959c2ce1eda1ad9d6b3c191b2 (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 <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions