diff options
author | Max Kellermann <max@duempel.org> | 2014-01-30 18:37:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 18:43:40 +0100 |
commit | a31738f6f1473f4f621bc16513ed0c6024749389 (patch) | |
tree | 9a97fe23e91de211a545173f3d90bebef1b043c5 /src/output | |
parent | 39a2867ea806682922a5bc8b0057bd4ddcbb4dcb (diff) | |
download | mpd-a31738f6f1473f4f621bc16513ed0c6024749389.tar.gz mpd-a31738f6f1473f4f621bc16513ed0c6024749389.tar.xz mpd-a31738f6f1473f4f621bc16513ed0c6024749389.zip |
Main, OutputThread: increase kernel timer slack (Linux)
Allows the kernel to combine timer wakeups with other processes,
reducing power usage.
Diffstat (limited to '')
-rw-r--r-- | src/output/OutputThread.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index 05d9468b4..a7fb2b87f 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -30,6 +30,7 @@ #include "MusicPipe.hxx" #include "MusicChunk.hxx" #include "thread/Util.hxx" +#include "thread/Slack.hxx" #include "thread/Name.hxx" #include "system/FatalError.hxx" #include "util/Error.hxx" @@ -561,6 +562,7 @@ AudioOutput::Task() FormatThreadName("output:%s", name); SetThreadRealtime(); + SetThreadTimerSlackUS(100); mutex.lock(); |