commit | a81d7dace6e729a1f4f5dd3afc3d53c536e1996c | [log] [tgz] |
---|---|---|
author | Martin Wallgren <martin.wallgren@sonymobile.com> | Mon Feb 04 14:26:51 2013 +0100 |
committer | Henrik Baard <henrik.baard@sonymobile.com> | Mon Feb 04 14:26:51 2013 +0100 |
tree | 0b3ba303a94af1ba64243c188f411604600507a4 | |
parent | 7ad885e2e6c845dbec4f16cd71e859240741dbf9 [diff] |
Set foreground priority for shutdown receivers. The broadcast of ACTION_SHUTDOWN has a timeout of 10 seconds. To reduce the risk of hitting the timeout and speeding up the shutdown sequence in ShutdownThread we set the priority of the BroadcastReceivers to FLAG_RECEIVER_FOREGROUND. We have seen that this change reduces the shutdown time when the system is under heavy load. Change-Id: I22cbf6af8cf6fc4bdefaa1c3da8a7eed7e7b7674