Skip to content

Commit a36a89a

Browse files
sultanqasimjumoog
authored andcommitted
partitionmanager: boost performance during analysis
This phase requires a high CPU frequency to perform well, but the loading conditions are such that many governors get fooled. Allow devices to force themselves to full performance during this stage for faster bootup. Change-Id: Idbf9606d913c6aef25f39f633a0f42d88fbad19a
1 parent 1c9d854 commit a36a89a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

partitionmanager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,7 @@ void TWPartitionManager::Update_System_Details(void) {
14881488
int data_size = 0;
14891489

14901490
gui_msg("update_part_details=Updating partition details...");
1491+
TWFunc::SetPerformanceMode(true);
14911492
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
14921493
(*iter)->Update_Size(true);
14931494
if ((*iter)->Can_Be_Mounted) {
@@ -1547,6 +1548,7 @@ void TWPartitionManager::Update_System_Details(void) {
15471548
}
15481549
}
15491550
}
1551+
TWFunc::SetPerformanceMode(false);
15501552
gui_msg("update_part_details_done=...done");
15511553
DataManager::SetValue(TW_BACKUP_DATA_SIZE, data_size);
15521554
string current_storage_path = DataManager::GetCurrentStoragePath();

0 commit comments

Comments
 (0)