dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/include
Samuel Thibault 10f02d1c59 [PATCH] spin_unlock_bh() and preempt_check_resched()
In _spin_unlock_bh(lock):
	do { \
		_raw_spin_unlock(lock); \
		preempt_enable(); \
		local_bh_enable(); \
		__release(lock); \
	} while (0)

there is no reason for using preempt_enable() instead of a simple
preempt_enable_no_resched()

Since we know bottom halves are disabled, preempt_schedule() will always
return at once (preempt_count!=0), and hence preempt_check_resched() is
useless here...

This fixes it by using "preempt_enable_no_resched()" instead of the
"preempt_enable()", and thus avoids the useless preempt_check_resched()
just before re-enabling bottom halves.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-21 10:46:48 -07:00
..
acpi Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-alpha [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-arm [PATCH] ARM: 2676/1: S3C2440 - NAND register additions 2005-05-12 19:27:13 +01:00
asm-arm26 [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-cris [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-frv [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-generic [PATCH] ppc32: platform-specific functions missing from kallsyms. 2005-05-05 16:36:31 -07:00
asm-h8300 [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-i386 [PATCH] x86: geode support fixes 2005-05-05 16:36:49 -07:00
asm-ia64 Remove some left-over empty files 2005-05-20 13:36:19 -07:00
asm-m32r [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-m68k [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-m68knommu [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-mips [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-parisc [PATCH] make some things static 2005-05-05 16:36:47 -07:00
asm-ppc [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-ppc64 [PATCH] ppc64: global interrupt queue cleanup 2005-05-06 08:07:01 -07:00
asm-s390 [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-sh [PATCH] make some things static 2005-05-05 16:36:47 -07:00
asm-sh64 [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-sparc [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-sparc64 [SPARC64]: Kill useless __pte_alloc_one_kernel indirection 2005-05-05 14:27:56 -07:00
asm-um [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00
asm-v850 [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
asm-x86_64 Remove some left-over empty files 2005-05-20 13:36:19 -07:00
linux [PATCH] spin_unlock_bh() and preempt_check_resched() 2005-05-21 10:46:48 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
media [PATCH] dvb: modified dvb_register_adapter() to avoid kmalloc/kfree 2005-05-17 07:59:33 -07:00
mtd Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
net [PKT_SCHED]: Fixup simple action define. 2005-05-19 12:42:39 -07:00
pcmcia Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rxrpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi [SCSI] implement parameter limits in the SPI transport class 2005-05-20 15:54:32 -05:00
sound Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
video [PATCH] Clean-up and bug fix for tdfxfb framebuffer size detection 2005-05-01 08:59:25 -07:00