diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-10-11 21:37:39 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-10-21 07:46:27 -0600 |
commit | ed800961a019240208de4ee5662d6f02381a18aa (patch) | |
tree | 1fc7d5f5eb2d033a74598d85bea44e0086461c20 /arch/x86/cpu | |
parent | bfa95c538b8b7d9384141f3c88021aa9d941ba54 (diff) | |
download | blackbird-obmc-uboot-ed800961a019240208de4ee5662d6f02381a18aa.tar.gz blackbird-obmc-uboot-ed800961a019240208de4ee5662d6f02381a18aa.zip |
x86: Add more common routines to manipulate mrc cache
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>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu')
0 files changed, 0 insertions, 0 deletions