• Ingo Molnar's avatar
    time: ntp: micro-optimize ntp_update_offset() · c7986acb
    Ingo Molnar authored
    Impact: cleanup, no functionality changed
    
    The time_reftime update in ntp_update_offset() to xtime.tv_sec
    is a convoluted way of saying that we want to freeze the frequency
    and want the 'secs' delta to be 0. Also make this branch unlikely.
    
    This shaves off 8 bytes from the code size:
    
       text	   data	    bss	    dec	    hex	filename
       2504	    114	    136	   2754	    ac2	ntp.o.before
       2496	    114	    136	   2746	    aba	ntp.o.after
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c7986acb
ntp.c 12 KB