• Hidetoshi Seto's avatar
    [IA64] cleanup and improve fsys_gettimeofday · 4fe01c68
    Hidetoshi Seto authored
    This patch does:
    
     - Remove outdated comments (which someday I marked with "?").
     - Reassemble instructions to fit them in fewer bundles.
     - If McKinley Errata 9 workaround is not needed, the workaround
       bundles will be patched out with NOPs. However it also not
       needed to have a totally NOP bundle (nop * 3) before branch.
    
    As a result, this makes the code path 3 (or 2) bundles shorter
    (and remove 1 unnecessary stop bit). It seems to be 1% faster.
    
    (10sec loop test, with nojitter @ Madison 1.5GHz x 4)
    Before:
     CPU  0:  0.14 (usecs) (0 errors / 69598875 iterations)
     CPU  1:  0.14 (usecs) (0 errors / 69630721 iterations)
     CPU  2:  0.14 (usecs) (0 errors / 69607850 iterations)
     CPU  3:  0.14 (usecs) (0 errors / 69619832 iterations)
    
    After:
     CPU  0:  0.14 (usecs) (0 errors / 70257728 iterations)
     CPU  1:  0.14 (usecs) (0 errors / 70309498 iterations)
     CPU  2:  0.14 (usecs) (0 errors / 70280639 iterations)
     CPU  3:  0.14 (usecs) (0 errors / 70260682 iterations)
    Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    4fe01c68
patch.c 5.93 KB