drivers: lpm_levels: remove the BUG_ON in get_cluster_sleep_time

BUG_ON in get_cluster_sleep_time may lead to false alarm when
cluster_unprepare races with cluster_select. The below is the race.

If any core is about to select cci low power mode, it is
possible that another core from same cluster can wakeup and clears
the first cpu mask as well in cci cluster which will lead to crash.

But this is false alarm, since it still has channce to auto correct
the state machine in cluster_configure.

Change-Id: I730e916098dfcfde2c58eab088c84675b2b12172
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
This commit is contained in:
Anji Jonnala 2015-05-05 21:04:50 +05:30
parent 7a7dca4023
commit ac0d50cdd4

View file

@ -365,9 +365,6 @@ static uint64_t get_cluster_sleep_time(struct lpm_cluster *cluster,
return USEC_PER_SEC * suspend_wake_time;
}
BUG_ON(!cpumask_and(&online_cpus_in_cluster,
&cluster->num_childs_in_sync, cpu_online_mask));
for_each_cpu(cpu, &online_cpus_in_cluster) {
td = &per_cpu(tick_cpu_device, cpu);
if (td->evtdev->next_event.tv64 < next_event.tv64) {