Skip to content

Commit deb0ba9

Browse files
sultanqasimmsfjarvis
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 339cc62 commit deb0ba9

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
@@ -1360,6 +1360,7 @@ void TWPartitionManager::Update_System_Details(void) {
13601360
int data_size = 0;
13611361

13621362
gui_msg("update_part_details=Updating partition details...");
1363+
TWFunc::SetPerformanceMode(true);
13631364
for (iter = Partitions.begin(); iter != Partitions.end(); iter++) {
13641365
(*iter)->Update_Size(true);
13651366
if ((*iter)->Can_Be_Mounted) {
@@ -1419,6 +1420,7 @@ void TWPartitionManager::Update_System_Details(void) {
14191420
}
14201421
}
14211422
}
1423+
TWFunc::SetPerformanceMode(false);
14221424
gui_msg("update_part_details_done=...done");
14231425
DataManager::SetValue(TW_BACKUP_DATA_SIZE, data_size);
14241426
string current_storage_path = DataManager::GetCurrentStoragePath();

0 commit comments

Comments
 (0)