From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:41:53 +0800 Subject: [PATCH v6 016/102] x86: timer: use a timer base of 0 In-Reply-To: <20191206213936.v6.16.I699496bbaa62574e084c63564a2497fcca8fe951@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.16.I699496bbaa62574e084c63564a2497fcca8fe951@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:46 PM Simon Glass wrote: > > On x86 platforms the timer is reset to 0 when the SoC is reset. Having > this as the timer base is useful since it provides an indication of how > long it takes before U-Boot is running. > > When U-Boot sets the timer base to something else, time is lost and we > no-longer have an accurate account of the time since reset. This > particularly affects bootstage. > > Change the default to not read the timer base, leaving it at 0. Add an > option for when U-Boot is the secondary bootloader. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: > - Enable option for slimbootloader, coreboot, efi > - Reverse the sense of the CONFIG option > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/coreboot/Kconfig | 1 + > arch/x86/cpu/slimbootloader/Kconfig | 1 + > drivers/timer/Kconfig | 14 ++++++++++++++ > drivers/timer/tsc_timer.c | 3 ++- > lib/efi/Kconfig | 1 + > 5 files changed, 19 insertions(+), 1 deletion(-) > applied to u-boot-x86/next, thanks!