]> err.no Git - linux-2.6/commit
[PATCH] streamline preempt_count type across archs
authorJesper Juhl <juhl-lkml@dif.dk>
Thu, 23 Jun 2005 07:09:07 +0000 (00:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:19 +0000 (09:45 -0700)
commitdcd497f99a1ef29a7c5e76142965be77e9dacabd
tree684d64753c6cd71917cf3c360023dd273be376b4
parent35a82d1a53e1a9ad54efafcc940f9335beaed5c3
[PATCH] streamline preempt_count type across archs

The preempt_count member of struct thread_info is currently either defined
as int, unsigned int or __s32 depending on arch.  This patch makes the type
of preempt_count an int on all archs.

Having preempt_count be an unsigned type prevents the catching of
preempt_count < 0 bugs, and using int on some archs and __s32 on others is
not exactely "neat" - much nicer when it's just int all over.

A previous version of this patch was already ACK'ed by Robert Love, and the
only change in this version of the patch compared to the one he ACK'ed is
that this one also makes sure the preempt_count member is consistently
commented.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 files changed:
include/asm-arm/thread_info.h
include/asm-arm26/thread_info.h
include/asm-cris/thread_info.h
include/asm-frv/thread_info.h
include/asm-h8300/thread_info.h
include/asm-i386/thread_info.h
include/asm-ia64/thread_info.h
include/asm-m32r/thread_info.h
include/asm-m68k/thread_info.h
include/asm-m68knommu/thread_info.h
include/asm-mips/thread_info.h
include/asm-parisc/thread_info.h
include/asm-ppc/thread_info.h
include/asm-ppc64/thread_info.h
include/asm-s390/thread_info.h
include/asm-sh/thread_info.h
include/asm-sh64/thread_info.h
include/asm-sparc/thread_info.h
include/asm-sparc64/thread_info.h
include/asm-um/thread_info.h
include/asm-v850/thread_info.h
include/asm-x86_64/thread_info.h