Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    642e8487
    x86: timer: Reduce timer code size in TPL on Intel CPUs · 642e8487
    Simon Glass authored
    
    Most of the timer-calibration methods are not needed on recent Intel CPUs
    and just increase code size. Add an option to use the known-good way to
    get the clock frequency in TPL. Size reduction is about 700 bytes.
    
    Note that version 1 of this commit caused bootstage to crash since the CPU
    was not identified. This is corrected by changes previously applied to
    make sure that the CPU is identified before spl_init() is called, such as
    
       39146a2e0b x86: Move CPU init to before spl_init()
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    642e8487
    History
    x86: timer: Reduce timer code size in TPL on Intel CPUs
    Simon Glass authored
    
    Most of the timer-calibration methods are not needed on recent Intel CPUs
    and just increase code size. Add an option to use the known-good way to
    get the clock frequency in TPL. Size reduction is about 700 bytes.
    
    Note that version 1 of this commit caused bootstage to crash since the CPU
    was not identified. This is corrected by changes previously applied to
    make sure that the CPU is identified before spl_init() is called, such as
    
       39146a2e0b x86: Move CPU init to before spl_init()
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>