File tree Expand file tree Collapse file tree 3 files changed +24
-23
lines changed Expand file tree Collapse file tree 3 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 26
26
#include <linux/libfdt.h>
27
27
#include <linux/smp.h>
28
28
#include <linux/serial_core.h>
29
+ #include <linux/suspend.h>
29
30
#include <linux/pgtable.h>
30
31
31
32
#include <acpi/ghes.h>
@@ -227,6 +228,15 @@ void __init acpi_boot_table_init(void)
227
228
if (earlycon_acpi_spcr_enable )
228
229
early_init_dt_scan_chosen_stdout ();
229
230
} else {
231
+ #ifdef CONFIG_HIBERNATION
232
+ struct acpi_table_header * facs = NULL ;
233
+ acpi_get_table (ACPI_SIG_FACS , 1 , & facs );
234
+ if (facs ) {
235
+ swsusp_hardware_signature =
236
+ ((struct acpi_table_facs * )facs )-> hardware_signature ;
237
+ acpi_put_table (facs );
238
+ }
239
+ #endif
230
240
acpi_parse_spcr (earlycon_acpi_spcr_enable , true);
231
241
if (IS_ENABLED (CONFIG_ACPI_BGRT ))
232
242
acpi_table_parse (ACPI_SIG_BGRT , acpi_parse_bgrt );
Original file line number Diff line number Diff line change @@ -315,23 +315,19 @@ void acpi_tb_parse_fadt(void)
315
315
ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL ,
316
316
NULL , FALSE, TRUE, & acpi_gbl_dsdt_index );
317
317
318
- /* If Hardware Reduced flag is set, there is no FACS */
319
-
320
- if (!acpi_gbl_reduced_hardware ) {
321
- if (acpi_gbl_FADT .facs ) {
322
- acpi_tb_install_standard_table ((acpi_physical_address )
323
- acpi_gbl_FADT .facs ,
324
- ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL ,
325
- NULL , FALSE, TRUE,
326
- & acpi_gbl_facs_index );
327
- }
328
- if (acpi_gbl_FADT .Xfacs ) {
329
- acpi_tb_install_standard_table ((acpi_physical_address )
330
- acpi_gbl_FADT .Xfacs ,
331
- ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL ,
332
- NULL , FALSE, TRUE,
333
- & acpi_gbl_xfacs_index );
334
- }
318
+ if (acpi_gbl_FADT .facs ) {
319
+ acpi_tb_install_standard_table ((acpi_physical_address )
320
+ acpi_gbl_FADT .facs ,
321
+ ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL ,
322
+ NULL , FALSE, TRUE,
323
+ & acpi_gbl_facs_index );
324
+ }
325
+ if (acpi_gbl_FADT .Xfacs ) {
326
+ acpi_tb_install_standard_table ((acpi_physical_address )
327
+ acpi_gbl_FADT .Xfacs ,
328
+ ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL ,
329
+ NULL , FALSE, TRUE,
330
+ & acpi_gbl_xfacs_index );
335
331
}
336
332
}
337
333
Original file line number Diff line number Diff line change @@ -36,12 +36,7 @@ acpi_status acpi_tb_initialize_facs(void)
36
36
{
37
37
struct acpi_table_facs * facs ;
38
38
39
- /* If Hardware Reduced flag is set, there is no FACS */
40
-
41
- if (acpi_gbl_reduced_hardware ) {
42
- acpi_gbl_FACS = NULL ;
43
- return (AE_OK );
44
- } else if (acpi_gbl_FADT .Xfacs &&
39
+ if (acpi_gbl_FADT .Xfacs &&
45
40
(!acpi_gbl_FADT .facs
46
41
|| !acpi_gbl_use32_bit_facs_addresses )) {
47
42
(void )acpi_get_table_by_index (acpi_gbl_xfacs_index ,
You can’t perform that action at this time.
0 commit comments