perfmon/engine/src/perfmon_engine.cpp
changeset 17 4f2773374eff
parent 15 e11368ed4880
--- a/perfmon/engine/src/perfmon_engine.cpp	Mon May 03 12:32:02 2010 +0300
+++ b/perfmon/engine/src/perfmon_engine.cpp	Fri May 14 15:53:02 2010 +0300
@@ -49,7 +49,7 @@
     CActiveScheduler* pS = new CActiveScheduler;
     CActiveScheduler::Install(pS);
 
-    CIdle* idle = CIdle::NewL(CActive::EPriorityStandard);
+    CIdle* idle = CIdle::NewL(CActive::EPriorityLow);
     TCallBack cb(CPULoadCount, aParam);
     idle->Start(cb);
 
@@ -296,7 +296,7 @@
     // create a thread for CPU load monitoring
     User::LeaveIfError(iCPULoadThread.Create(_L("PerfMonCPULoad"),
             CPULoadNOPThread, 0x1000, 0x1000, 0x100000, &iCPULoadCounter));
-    iCPULoadThread.SetPriority(EPriorityLess);
+    iCPULoadThread.SetPriority(EPriorityAbsoluteVeryLow);
     iCPULoadThread.Resume();
 
     iCurrentCPUMode = ECPUModeNOPs; // NOPs taken succesfully in use
@@ -747,8 +747,7 @@
                 iSettings.iMaxSamples);
         LoadDFSValueL(settingsStore, KPMSettingPriority, iSettings.iPriority);
         
-        // TODO: enable next line when NOPs will be working
-        //LoadDFSValueL(settingsStore, KPMSettingCPUMode, iSettings.iCPUMode);
+        LoadDFSValueL(settingsStore, KPMSettingCPUMode, iSettings.iCPUMode);
         
         LoadDFSValueL(settingsStore, KPMSettingKeepBackLightOn,
                 iSettings.iKeepBacklightOn);