hsw: clk: allocate clk data from system pool

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-02-25 20:48:01 +00:00
parent 24851d2f74
commit 4930014c1b
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ uint64_t clock_time_elapsed(int clock, uint64_t previous, uint64_t *current)
void init_platform_clocks(void)
{
clk_pdata = rmalloc(RZONE_SYS, RFLAGS_NONE, sizeof(*clk_pdata));
clk_pdata = rzalloc(RZONE_SYS, RFLAGS_NONE, sizeof(*clk_pdata));
spinlock_init(&clk_pdata->clk[0].lock);
spinlock_init(&clk_pdata->clk[1].lock);