[PATCH] kernel/cpu_pm: replace rwlock with raw_spinlock

2016-09-22 Thread dpervushin
From: dmitry pervushin Recently I faced the BUG in cpuidle driver, "scheduling while atomic" The reason of this BUG is that rwlock behavior gets changed by RT patches: cpu_pm_enter is an atomic function, designed to execute with interrupts disabled, thus it shouldn't

[PATCH] kernel/cpu_pm: replace rwlock with raw_spinlock

2016-09-22 Thread dpervushin
From: dmitry pervushin Recently I faced the BUG in cpuidle driver, "scheduling while atomic" The reason of this BUG is that rwlock behavior gets changed by RT patches: cpu_pm_enter is an atomic function, designed to execute with interrupts disabled, thus it shouldn't sleep. However, with RT