• Christoph Hellwig's avatar
    [PATCH] snsc: switch from force_sig to kill_proc · 5c318bef
    Christoph Hellwig authored
    Currently the snsc driver uses force_sig to send init a SIGPWR when the
    system overheats.  This patch switches it to kill_proc instead which has
    the following advantages:
    
     (1) gets rid of one of the last remaining tasklist_lock users
         in modular code
     (2) simplifies the snsc code significantly
    
    The downside is that an init implementation could in theory block SIGPWR
    and it would not get delivered.  The sysvinit code used by all major
    distributions doesn't do this and blocking this signal in init would be a
    rather stupid thing to do.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    5c318bef
snsc_event.c 7.44 KB