Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Juergen Gross wrote: > On 21/06/18 16:02, Ingo Molnar wrote: > > > > * Ingo Molnar wrote: > > > >> > >> * Mikulas Patocka wrote: > >> > >>> The sleeping functions down, down_interruptible, down_killable and > >>> down_timeout can't be called with interrupts disabled, so we don't have to

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Juergen Gross wrote: > On 21/06/18 16:02, Ingo Molnar wrote: > > > > * Ingo Molnar wrote: > > > >> > >> * Mikulas Patocka wrote: > >> > >>> The sleeping functions down, down_interruptible, down_killable and > >>> down_timeout can't be called with interrupts disabled, so we don't have to

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Juergen Gross
On 21/06/18 16:02, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> >> * Mikulas Patocka wrote: >> >>> The sleeping functions down, down_interruptible, down_killable and >>> down_timeout can't be called with interrupts disabled, so we don't have to >>> save and restore interrupt flag. >>> >>>

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Juergen Gross
On 21/06/18 16:02, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> >> * Mikulas Patocka wrote: >> >>> The sleeping functions down, down_interruptible, down_killable and >>> down_timeout can't be called with interrupts disabled, so we don't have to >>> save and restore interrupt flag. >>> >>>

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > * Mikulas Patocka wrote: > > > > > The sleeping functions down, down_interruptible, down_killable and > > > down_timeout can't be called with interrupts disabled, so we don't have to > > > save and restore interrupt flag. > > > > >

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > * Mikulas Patocka wrote: > > > > > The sleeping functions down, down_interruptible, down_killable and > > > down_timeout can't be called with interrupts disabled, so we don't have to > > > save and restore interrupt flag. > > > > >

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Mikulas Patocka wrote: > > > The sleeping functions down, down_interruptible, down_killable and > > down_timeout can't be called with interrupts disabled, so we don't have to > > save and restore interrupt flag. > > > > This patch avoids the costly pushf and popf

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Mikulas Patocka wrote: > > > The sleeping functions down, down_interruptible, down_killable and > > down_timeout can't be called with interrupts disabled, so we don't have to > > save and restore interrupt flag. > > > > This patch avoids the costly pushf and popf

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Mikulas Patocka wrote: > The sleeping functions down, down_interruptible, down_killable and > down_timeout can't be called with interrupts disabled, so we don't have to > save and restore interrupt flag. > > This patch avoids the costly pushf and popf instructions on the semaphore > path. >

Re: [PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-06-21 Thread Ingo Molnar
* Mikulas Patocka wrote: > The sleeping functions down, down_interruptible, down_killable and > down_timeout can't be called with interrupts disabled, so we don't have to > save and restore interrupt flag. > > This patch avoids the costly pushf and popf instructions on the semaphore > path. >

[PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-05-30 Thread Mikulas Patocka
The sleeping functions down, down_interruptible, down_killable and down_timeout can't be called with interrupts disabled, so we don't have to save and restore interrupt flag. This patch avoids the costly pushf and popf instructions on the semaphore path. Signed-off-by: Mikulas Patocka ---

[PATCH] semaphore: use raw_spin_lock_irq instead of raw_spin_lock_irqsave

2018-05-30 Thread Mikulas Patocka
The sleeping functions down, down_interruptible, down_killable and down_timeout can't be called with interrupts disabled, so we don't have to save and restore interrupt flag. This patch avoids the costly pushf and popf instructions on the semaphore path. Signed-off-by: Mikulas Patocka ---