Skip to content
  • Jesper Juhl's avatar
    [PATCH] streamline preempt_count type across archs · dcd497f9
    Jesper Juhl authored
    
    
    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: default avatarJesper Juhl <juhl-lkml@dif.dk>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    dcd497f9