On Tue, 2012-10-23 at 21:23 +0200, Oleg Nesterov wrote: > I have to admit, I have > no idea how much cli/sti is slower compared to preempt_disable/enable. > A lot.. esp on stupid hardware (insert pentium-4 reference), but I think its more expensive for pretty much all hardware, preempt_disable() is only a non-atomic cpu local increment and a compiler barrier, enable the same and a single conditional. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH 1/2] percpu-rw-semaphores: us... Paul E. McKenney
- Re: [PATCH 1/2] percpu-rw-semaphore... Mikulas Patocka
- Re: [PATCH 1/2] percpu-rw-semaphore... Paul E. McKenney
- Re: [PATCH 1/2] percpu-rw-semaphore... Mikulas Patocka
- Re: [PATCH 1/2] percpu-rw-semaphore... Paul E. McKenney
- Re: [PATCH 1/2] percpu-rw-semaphore... Mikulas Patocka
- Re: [PATCH 1/2] percpu-rw-semaphore... Paul E. McKenney
- Re: [PATCH 1/2] percpu-rw-semaphore... Paul E. McKenney
- Re: [PATCH 1/2] percpu-rw-semaphore... Mikulas Patocka
- Re: [PATCH 1/2] percpu-rw-semaphores: use light/heav... Oleg Nesterov
- Re: [PATCH 1/2] percpu-rw-semaphores: use light/... Peter Zijlstra
- Re: [PATCH 1/2] percpu-rw-semaphores: use light/... Peter Zijlstra
- Re: [PATCH 1/2] percpu-rw-semaphores: use li... Oleg Nesterov
- Re: [PATCH 1/2] percpu-rw-semaphores: use light/... Mikulas Patocka
- Re: [PATCH 1/2] percpu-rw-semaphores: use light/heavy bar... Peter Zijlstra