mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 09:46:46 +07:00
2ec1fc4e16
arm_memblock_steal() is not suppose to be used outside ->reserve callback. OMAP barrier errata code was using it outside reserve callback and hence it was broken. Move the allocation as part of ->reserve callback to fix the it. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
20 lines
450 B
C
20 lines
450 B
C
#ifndef __OMAP_SECURE_H__
|
|
#define __OMAP_SECURE_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
|
|
extern int omap_secure_ram_reserve_memblock(void);
|
|
#else
|
|
static inline void omap_secure_ram_reserve_memblock(void)
|
|
{ }
|
|
#endif
|
|
|
|
#ifdef CONFIG_OMAP4_ERRATA_I688
|
|
extern int omap_barrier_reserve_memblock(void);
|
|
#else
|
|
static inline void omap_barrier_reserve_memblock(void)
|
|
{ }
|
|
#endif
|
|
#endif /* __OMAP_SECURE_H__ */
|