forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/dsobject.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: dsobject - Dispatcher object management routines
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -18,7 +18,6 @@
1818 #define _COMPONENT ACPI_DISPATCHER
1919 ACPI_MODULE_NAME("dsobject")
2020
21
-#ifndef ACPI_NO_METHOD_EXECUTION
2221 /*******************************************************************************
2322 *
2423 * FUNCTION: acpi_ds_build_internal_object
....@@ -299,8 +298,6 @@
299298 return_ACPI_STATUS(status);
300299 }
301300
302
-#endif /* ACPI_NO_METHOD_EXECUTION */
303
-
304301 /*******************************************************************************
305302 *
306303 * FUNCTION: acpi_ds_init_object_from_op
....@@ -404,9 +401,7 @@
404401
405402 /* Truncate value if we are executing from a 32-bit ACPI table */
406403
407
-#ifndef ACPI_NO_METHOD_EXECUTION
408404 (void)acpi_ex_truncate_for32bit_table(obj_desc);
409
-#endif
410405 break;
411406
412407 case AML_REVISION_OP:
....@@ -428,7 +423,6 @@
428423
429424 obj_desc->integer.value = op->common.value.integer;
430425
431
-#ifndef ACPI_NO_METHOD_EXECUTION
432426 if (acpi_ex_truncate_for32bit_table(obj_desc)) {
433427
434428 /* Warn if we found a 64-bit constant in a 32-bit table */
....@@ -439,7 +433,6 @@
439433 value.integer),
440434 (u32)obj_desc->integer.value));
441435 }
442
-#endif
443436 break;
444437
445438 default:
....@@ -477,7 +470,6 @@
477470 ((u32)opcode) - AML_FIRST_LOCAL_OP;
478471 obj_desc->reference.class = ACPI_REFCLASS_LOCAL;
479472
480
-#ifndef ACPI_NO_METHOD_EXECUTION
481473 status =
482474 acpi_ds_method_data_get_node(ACPI_REFCLASS_LOCAL,
483475 obj_desc->reference.
....@@ -487,7 +479,6 @@
487479 acpi_namespace_node,
488480 &obj_desc->reference.
489481 object));
490
-#endif
491482 break;
492483
493484 case AML_TYPE_METHOD_ARGUMENT:
....@@ -498,7 +489,6 @@
498489 ((u32)opcode) - AML_FIRST_ARG_OP;
499490 obj_desc->reference.class = ACPI_REFCLASS_ARG;
500491
501
-#ifndef ACPI_NO_METHOD_EXECUTION
502492 status = acpi_ds_method_data_get_node(ACPI_REFCLASS_ARG,
503493 obj_desc->
504494 reference.value,
....@@ -509,7 +499,6 @@
509499 &obj_desc->
510500 reference.
511501 object));
512
-#endif
513502 break;
514503
515504 default: /* Object name or Debug object */