Re: [PATCH] kernel/cpu_pm: replace rwlock with raw_spinlock

2016-09-22 Thread Andrey Utkin
On Thu, Sep 22, 2016 at 06:24:19PM +0200, dpervus...@gmail.com wrote: > From: dmitry pervushin > > Recently I faced the BUG in cpuidle driver, "scheduling while atomic" So please show BUG text. > The reason of this BUG is that rwlock behavior gets changed by > RT patches

Re: [PATCH] kernel/cpu_pm: replace rwlock with raw_spinlock

2016-09-22 Thread Andrey Utkin
On Thu, Sep 22, 2016 at 06:24:19PM +0200, dpervus...@gmail.com wrote: > From: dmitry pervushin > > Recently I faced the BUG in cpuidle driver, "scheduling while atomic" So please show BUG text. > The reason of this BUG is that rwlock behavior gets changed by > RT patches So add RT mailing

[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