MFC rev 1.21:

Failing to set new frequency should not lead to powerd exiting.
	Change err(3) to warn(3) as three other cases.

Approved by:    njl, des
This commit is contained in:
marck 2007-06-22 00:01:55 +00:00
parent 221bffcff3
commit 6def5b91cb

View File

@ -479,7 +479,7 @@ main(int argc, char * argv[])
cpu_running_mark, curfreq, freqs[i]);
}
if (set_freq(freqs[i]))
err(1, "error setting CPU frequency %d",
warn("error setting CPU frequency %d",
freqs[i]);
} else if (idle > (total * cpu_idle_mark) / 100 &&
curfreq > freqs[numfreqs - 1]) {