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:
Dmitry Morozovsky 2007-06-13 19:05:11 +00:00
parent 22dcc3c17b
commit 89a630d080

View File

@ -603,7 +603,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]) {