mirror of https://github.com/thesofproject/sof.git
hsw: clk: allocate clk data from system pool
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
24851d2f74
commit
4930014c1b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue