Bug 818730: Set sys.boot_completed to enable the ondemand CPU governor. r=fabrice
authorChris Jones <jones.chris.g@gmail.com>
Wed, 05 Dec 2012 23:02:05 -0800
changeset 120760 9aa728193de2d51dc84d104218203238435bad5a
parent 120759 3e3b0aa054745aaa9569c0c3e198724bc1da47fd
child 120761 e92d9397612ec0b7723fd64d466c861bee65df40
push idunknown
push userunknown
push dateunknown
reviewersfabrice
bugs818730
milestone20.0a1
Bug 818730: Set sys.boot_completed to enable the ondemand CPU governor. r=fabrice
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -402,16 +402,20 @@ var shell = {
         DOMApplicationRegistry.allAppsLaunchable = true;
 
         this.sendEvent(window, 'ContentStart');
 
         content.addEventListener('load', function shell_homeLoaded() {
           content.removeEventListener('load', shell_homeLoaded);
           shell.isHomeLoaded = true;
 
+#ifdef MOZ_WIDGET_GONK
+          libcutils.property_set('sys.boot_completed', '1');
+#endif
+
           Services.obs.notifyObservers(null, "browser-ui-startup-complete", "");
 
           if ('pendingChromeEvents' in shell) {
             shell.pendingChromeEvents.forEach((shell.sendChromeEvent).bind(shell));
           }
           delete shell.pendingChromeEvents;
         });