summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-30 11:42:52 +0300
committerAngel Pons <th3fanbus@gmail.com>2021-01-13 18:30:13 +0000
commit91946c5b137366ae283a5d2a075a415b0a403025 (patch)
tree31d8f1a02ec1f1c056fb64b13d94c688e2bffd3c /src/acpi
parentc84572e0e1d17a4ccc77f5cc6e35f96417826663 (diff)
ACPI: Have single call-site for acpi_inject_nvsa()
Change-Id: I61a9b07ec3fdaeef0622df82e106405f01e89a9e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48719 Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/gnvs.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/acpi/gnvs.c b/src/acpi/gnvs.c
index 27b4b8e82d..10a77d39de 100644
--- a/src/acpi/gnvs.c
+++ b/src/acpi/gnvs.c
@@ -68,16 +68,6 @@ void *gnvs_get_or_create(void)
return gnvs;
}
-void acpi_inject_nvsa(void)
-{
- if (!gnvs)
- return;
-
- acpigen_write_scope("\\");
- acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
- acpigen_pop_len();
-}
-
void acpi_fill_gnvs(void)
{
if (!gnvs)
@@ -85,4 +75,8 @@ void acpi_fill_gnvs(void)
soc_fill_gnvs(gnvs);
mainboard_fill_gnvs(gnvs);
+
+ acpigen_write_scope("\\");
+ acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
+ acpigen_pop_len();
}