/* Case2: Previous CPU boosting on the target thread, but different CPU boosting level */
if (cpu_boosting_info->level != cpu_boosting_level) {
+ cpu_boosting_level_e prev_cpu_boosting_level = cpu_boosting_info->level;
+
/**
* Do not free cpu_boosting_info in
* g_cpu_boosting_info_table[cpu_boosting_info->level].
set_cpu_boosting_info(cpu_boosting_info_set_flag, cpu_boosting_info,
tid, cpu_boosting_info->ref_cnt + 1, cpu_boosting_flags, timer_id, cpu_boosting_level);
- g_hash_table_remove(g_cpu_boosting_info_table[cpu_boosting_info->level],
+ g_hash_table_remove(g_cpu_boosting_info_table[prev_cpu_boosting_level],
&cpu_boosting_info->tid);
g_hash_table_insert(g_cpu_boosting_info_table[cpu_boosting_level],
&cpu_boosting_info->tid, cpu_boosting_info);