Skip to content
Commit a478a26c authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: timer: Use a separate flag for whether timer is inited



At present the value of the timer base is used to determine whether the
timer has been set up or not. It is true that the timer is essentially
never exactly 0 when it is read. However 'time 0' may indicate the time
that the machine was reset so it is useful to be able to denote that.

Update the code to use a separate flag instead.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarAiden Park <aiden.park@intel.com>
Reviewed-by: default avatarAiden Park <aiden.park@intel.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 096c71e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment