• Ingo Molnar's avatar
    x86: mce: Clean up thermal throttling state tracking code · fe2414ca
    Ingo Molnar authored
    commit 39676840 upstream.
    
    Instead of a mess of three separate percpu variables, consolidate
    the state into a single structure.
    
    Also clean up therm_throt_process(), use cleaner and more
    understandable variable names and a clearer logic.
    
    This, without changing the logic, makes the code more
    streamlined, more readable and smaller as well:
    
       text	   data	    bss	    dec	    hex	filename
       1487	    169	      4	   1660	    67c	therm_throt.o.before
       1432	    176	      4	   1612	    64c	therm_throt.o.after
    
    Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Cc: Huang Ying <ying.huang@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    fe2414ca
therm_throt.c 8.11 KB