
18 Oct
2015
18 Oct
'15
10:26 p.m.
On 11 October 2015 at 22:37, Bin Meng bmeng.cn@gmail.com wrote:
This adds mrccache_reserve(), mrccache_get_region() and mrccache_save() APIs to the mrccache codes. They are ported from the ivybridge implementation, but with some changes. For example, in the mrccache_reserve(), ivybridge version only reserves the pure MRC data, which causes additional malloc() when saving the cache as the save API needs some meta data. Now we change it to save the whole MRC date plus the meta data to elinimate the need for the malloc() later.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
arch/x86/include/asm/mrccache.h | 51 +++++++++++++++++++++++ arch/x86/lib/mrccache.c | 89 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+)
Acked-by: Simon Glass sjg@chromium.org