build_packages: make --autosetgov work w/any governor

If the user normally uses a non-performance governor, the --autosetgov
option should be able to switch to performance.  There's no need to only
support this when the active governor is powersave.  So flip the checks
around a bit to:
* --autosetgov uses performance if the governor is anything else
* if --autosetgov is not used, and the governor is powersave, then show
  the warning/tip to the user

TEST=`./build_packages --autosetgov` with works with curr gov set to ondemand, powersave, or performance

Change-Id: I3d212d05bb6bb847b688fe9dee6782e352b6ba75
Tested-by: Mike Frysinger <>
Reviewed-by: Grant Grundler <>
Commit-Queue: Mike Frysinger <>
1 file changed