mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
- Initialize freq variable so we will not end up with random value
if there is no YAMON present
This commit is contained in:
parent
5e9ccc8797
commit
c9735f9537
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254944
@ -56,6 +56,7 @@ yamon_getcpufreq(void)
|
||||
uint32_t freq;
|
||||
int ret;
|
||||
|
||||
freq = 0;
|
||||
ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq,
|
||||
sizeof(freq));
|
||||
if (ret != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user