diff options
author | Joel Kitching <kitching@google.com> | 2019-04-30 16:18:41 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-14 20:13:17 -0700 |
commit | 552c1759b5d64e2843755e51ca5ea3961f2cfb7a (patch) | |
tree | 1fa008a949aebea6ed39420afd9f2c8ec10ed2f8 /host/lib/crossystem.c | |
parent | 52fa8c11f8e5217e17da74c04e8ad1e5aee9ff40 (diff) | |
download | vboot-552c1759b5d64e2843755e51ca5ea3961f2cfb7a.tar.gz |
vboot: deprecate Alt OS code
BUG=b:124141368, b:131663912
TEST=make clean && make runtests
BRANCH=none
Change-Id: I6aae5683b8306eede4388ff5ed6665e7769756dc
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1588026
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'host/lib/crossystem.c')
-rw-r--r-- | host/lib/crossystem.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index 34ac9724..994d4796 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -570,17 +570,8 @@ int VbGetSystemPropertyInt(const char *name) } else { value = 0; } - } else if (!strcasecmp(name, "enable_alt_os_request")) { - value = vb2_get_nv_storage(VB2_NV_ENABLE_ALT_OS_REQUEST); - } else if (!strcasecmp(name, "disable_alt_os_request")) { - value = vb2_get_nv_storage(VB2_NV_DISABLE_ALT_OS_REQUEST); } else if (!strcasecmp(name, "post_ec_sync_delay")) { value = vb2_get_nv_storage(VB2_NV_POST_EC_SYNC_DELAY); - } else if (!strcasecmp(name, "alt_os_enabled")) { - /* TODO(b/117195332): Change this to read from a field - * dedicated to storing Alt OS state. */ - value = !!(GetVdatInt(VDAT_INT_FLAGS) - & VBSD_ALT_OS_SHOW_PICKER); } return value; @@ -739,10 +730,6 @@ int VbSetSystemPropertyInt(const char *name, int value) return vb2_set_nv_storage(VB2_NV_BATTERY_CUTOFF_REQUEST, value); } else if (!strcasecmp(name,"kernel_max_rollforward")) { return vb2_set_nv_storage(VB2_NV_KERNEL_MAX_ROLLFORWARD, value); - } else if (!strcasecmp(name, "enable_alt_os_request")) { - return vb2_set_nv_storage(VB2_NV_ENABLE_ALT_OS_REQUEST, value); - } else if (!strcasecmp(name, "disable_alt_os_request")) { - return vb2_set_nv_storage(VB2_NV_DISABLE_ALT_OS_REQUEST, value); } else if (!strcasecmp(name, "post_ec_sync_delay")) { return vb2_set_nv_storage(VB2_NV_POST_EC_SYNC_DELAY, value); } |