x86, intel_txt: Factor out the code for S3 setup
authorH. Peter Anvin <hpa@zytor.com>
Fri, 14 Aug 2009 19:14:19 +0000 (12:14 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 14 Aug 2009 19:14:19 +0000 (12:14 -0700)
commit58c41d28259c246dbc11358d85d332dc20ccd57b
tree15869f934a80f280085df402b08bb7d0720c816e
parent81e2d7b30d718824434725a4a24d5864a71b1d30
x86, intel_txt: Factor out the code for S3 setup

S3 sleep requires special setup in tboot.  However, the data
structures needed to do such setup are only available if
CONFIG_ACPI_SLEEP is enabled.  Abstract them out as much as possible,
so we can have a single tboot_setup_sleep() which either is a proper
implementation or a stub which simply calls BUG().

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Shane Wang <shane.wang@intel.com>
Cc: Joseph Cihula <joseph.cihula@intel.com>
arch/x86/kernel/tboot.c