x86: Add a function to find the size of an mrccache record
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:57:04 +0000 (08:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 11 Oct 2019 09:37:19 +0000 (17:37 +0800)
commitca4e40887e9c8a60bd88f4a6668a3e53e7c899ae
treea4b21ca2716b4f65fba2d58b7d479547dd14efb8
parent9859dc76e784fb35e99a7c521a3bb2bfe2e6bc38
x86: Add a function to find the size of an mrccache record

Move the code to determine the size of a cache record into a function so
we can use it elsewhere in this file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/mrccache.c