mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:41:02 +07:00
ACPICA: Remove defines that use deprecated flag
This commit removes the use of ACPI_NO_METHOD_EXECUTE flag Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
2db9087670
commit
178a0f6379
@ -172,11 +172,7 @@ ACPI_GLOBAL(u8, acpi_gbl_disable_mem_tracking);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
|
|
||||||
#define NUM_PREDEFINED_NAMES 10
|
#define NUM_PREDEFINED_NAMES 10
|
||||||
#else
|
|
||||||
#define NUM_PREDEFINED_NAMES 9
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ACPI_GLOBAL(struct acpi_namespace_node, acpi_gbl_root_node_struct);
|
ACPI_GLOBAL(struct acpi_namespace_node, acpi_gbl_root_node_struct);
|
||||||
ACPI_GLOBAL(struct acpi_namespace_node *, acpi_gbl_root_node);
|
ACPI_GLOBAL(struct acpi_namespace_node *, acpi_gbl_root_node);
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#define _COMPONENT ACPI_DISPATCHER
|
#define _COMPONENT ACPI_DISPATCHER
|
||||||
ACPI_MODULE_NAME("dsobject")
|
ACPI_MODULE_NAME("dsobject")
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ds_build_internal_object
|
* FUNCTION: acpi_ds_build_internal_object
|
||||||
@ -299,8 +298,6 @@ acpi_ds_create_node(struct acpi_walk_state *walk_state,
|
|||||||
return_ACPI_STATUS(status);
|
return_ACPI_STATUS(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ACPI_NO_METHOD_EXECUTION */
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ds_init_object_from_op
|
* FUNCTION: acpi_ds_init_object_from_op
|
||||||
@ -404,9 +401,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
|
|
||||||
/* Truncate value if we are executing from a 32-bit ACPI table */
|
/* Truncate value if we are executing from a 32-bit ACPI table */
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
(void)acpi_ex_truncate_for32bit_table(obj_desc);
|
(void)acpi_ex_truncate_for32bit_table(obj_desc);
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AML_REVISION_OP:
|
case AML_REVISION_OP:
|
||||||
@ -428,7 +423,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
|
|
||||||
obj_desc->integer.value = op->common.value.integer;
|
obj_desc->integer.value = op->common.value.integer;
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
if (acpi_ex_truncate_for32bit_table(obj_desc)) {
|
if (acpi_ex_truncate_for32bit_table(obj_desc)) {
|
||||||
|
|
||||||
/* Warn if we found a 64-bit constant in a 32-bit table */
|
/* Warn if we found a 64-bit constant in a 32-bit table */
|
||||||
@ -439,7 +433,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
value.integer),
|
value.integer),
|
||||||
(u32)obj_desc->integer.value));
|
(u32)obj_desc->integer.value));
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -477,7 +470,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
((u32)opcode) - AML_FIRST_LOCAL_OP;
|
((u32)opcode) - AML_FIRST_LOCAL_OP;
|
||||||
obj_desc->reference.class = ACPI_REFCLASS_LOCAL;
|
obj_desc->reference.class = ACPI_REFCLASS_LOCAL;
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
status =
|
status =
|
||||||
acpi_ds_method_data_get_node(ACPI_REFCLASS_LOCAL,
|
acpi_ds_method_data_get_node(ACPI_REFCLASS_LOCAL,
|
||||||
obj_desc->reference.
|
obj_desc->reference.
|
||||||
@ -487,7 +479,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
acpi_namespace_node,
|
acpi_namespace_node,
|
||||||
&obj_desc->reference.
|
&obj_desc->reference.
|
||||||
object));
|
object));
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AML_TYPE_METHOD_ARGUMENT:
|
case AML_TYPE_METHOD_ARGUMENT:
|
||||||
@ -498,7 +489,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
((u32)opcode) - AML_FIRST_ARG_OP;
|
((u32)opcode) - AML_FIRST_ARG_OP;
|
||||||
obj_desc->reference.class = ACPI_REFCLASS_ARG;
|
obj_desc->reference.class = ACPI_REFCLASS_ARG;
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
status = acpi_ds_method_data_get_node(ACPI_REFCLASS_ARG,
|
status = acpi_ds_method_data_get_node(ACPI_REFCLASS_ARG,
|
||||||
obj_desc->
|
obj_desc->
|
||||||
reference.value,
|
reference.value,
|
||||||
@ -509,7 +499,6 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state,
|
|||||||
&obj_desc->
|
&obj_desc->
|
||||||
reference.
|
reference.
|
||||||
object));
|
object));
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: /* Object name or Debug object */
|
default: /* Object name or Debug object */
|
||||||
|
@ -57,7 +57,6 @@ void acpi_ds_clear_implicit_return(struct acpi_walk_state *walk_state)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ds_do_implicit_return
|
* FUNCTION: acpi_ds_do_implicit_return
|
||||||
@ -401,7 +400,6 @@ void acpi_ds_clear_operands(struct acpi_walk_state *walk_state)
|
|||||||
walk_state->num_operands = 0;
|
walk_state->num_operands = 0;
|
||||||
return_VOID;
|
return_VOID;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
|
@ -73,12 +73,10 @@ acpi_ds_init_callbacks(struct acpi_walk_state *walk_state, u32 pass_number)
|
|||||||
|
|
||||||
/* Execution pass */
|
/* Execution pass */
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
walk_state->parse_flags |= ACPI_PARSE_EXECUTE |
|
walk_state->parse_flags |= ACPI_PARSE_EXECUTE |
|
||||||
ACPI_PARSE_DELETE_TREE;
|
ACPI_PARSE_DELETE_TREE;
|
||||||
walk_state->descending_callback = acpi_ds_exec_begin_op;
|
walk_state->descending_callback = acpi_ds_exec_begin_op;
|
||||||
walk_state->ascending_callback = acpi_ds_exec_end_op;
|
walk_state->ascending_callback = acpi_ds_exec_end_op;
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -364,7 +362,7 @@ acpi_ds_load1_begin_op(struct acpi_walk_state *walk_state,
|
|||||||
|
|
||||||
/* Initialize the op */
|
/* Initialize the op */
|
||||||
|
|
||||||
#if (defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY))
|
#ifdef ACPI_CONSTANT_EVAL_ONLY
|
||||||
op->named.path = path;
|
op->named.path = path;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -422,7 +420,6 @@ acpi_status acpi_ds_load1_end_op(struct acpi_walk_state *walk_state)
|
|||||||
|
|
||||||
object_type = walk_state->op_info->object_type;
|
object_type = walk_state->op_info->object_type;
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
if (walk_state->op_info->flags & AML_FIELD) {
|
if (walk_state->op_info->flags & AML_FIELD) {
|
||||||
/*
|
/*
|
||||||
* If we are executing a method, do not create any namespace objects
|
* If we are executing a method, do not create any namespace objects
|
||||||
@ -466,7 +463,6 @@ acpi_status acpi_ds_load1_end_op(struct acpi_walk_state *walk_state)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (op->common.aml_opcode == AML_NAME_OP) {
|
if (op->common.aml_opcode == AML_NAME_OP) {
|
||||||
|
|
||||||
|
@ -371,10 +371,8 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state)
|
|||||||
struct acpi_namespace_node *node;
|
struct acpi_namespace_node *node;
|
||||||
union acpi_parse_object *arg;
|
union acpi_parse_object *arg;
|
||||||
struct acpi_namespace_node *new_node;
|
struct acpi_namespace_node *new_node;
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
u32 i;
|
u32 i;
|
||||||
u8 region_space;
|
u8 region_space;
|
||||||
#endif
|
|
||||||
|
|
||||||
ACPI_FUNCTION_TRACE(ds_load2_end_op);
|
ACPI_FUNCTION_TRACE(ds_load2_end_op);
|
||||||
|
|
||||||
@ -461,7 +459,6 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state)
|
|||||||
arg = op->common.value.arg;
|
arg = op->common.value.arg;
|
||||||
|
|
||||||
switch (walk_state->op_info->type) {
|
switch (walk_state->op_info->type) {
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
|
|
||||||
case AML_TYPE_CREATE_FIELD:
|
case AML_TYPE_CREATE_FIELD:
|
||||||
/*
|
/*
|
||||||
@ -558,12 +555,10 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif /* ACPI_NO_METHOD_EXECUTION */
|
|
||||||
|
|
||||||
case AML_TYPE_NAMED_COMPLEX:
|
case AML_TYPE_NAMED_COMPLEX:
|
||||||
|
|
||||||
switch (op->common.aml_opcode) {
|
switch (op->common.aml_opcode) {
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
case AML_REGION_OP:
|
case AML_REGION_OP:
|
||||||
case AML_DATA_REGION_OP:
|
case AML_DATA_REGION_OP:
|
||||||
|
|
||||||
@ -651,8 +646,6 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#endif /* ACPI_NO_METHOD_EXECUTION */
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
/* All NAMED_COMPLEX opcodes must be handled above */
|
/* All NAMED_COMPLEX opcodes must be handled above */
|
||||||
|
@ -530,7 +530,7 @@ struct acpi_walk_state *acpi_ds_create_walk_state(acpi_owner_id owner_id,
|
|||||||
|
|
||||||
/* Init the method args/local */
|
/* Init the method args/local */
|
||||||
|
|
||||||
#if (!defined (ACPI_NO_METHOD_EXECUTION) && !defined (ACPI_CONSTANT_EVAL_ONLY))
|
#ifndef ACPI_CONSTANT_EVAL_ONLY
|
||||||
acpi_ds_method_data_init(walk_state);
|
acpi_ds_method_data_init(walk_state);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#define _COMPONENT ACPI_EXECUTER
|
#define _COMPONENT ACPI_EXECUTER
|
||||||
ACPI_MODULE_NAME("excreate")
|
ACPI_MODULE_NAME("excreate")
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ex_create_alias
|
* FUNCTION: acpi_ex_create_alias
|
||||||
@ -390,7 +389,6 @@ acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state)
|
|||||||
acpi_ut_remove_reference(obj_desc);
|
acpi_ut_remove_reference(obj_desc);
|
||||||
return_ACPI_STATUS(status);
|
return_ACPI_STATUS(status);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
|
@ -34,7 +34,6 @@ ACPI_MODULE_NAME("exutils")
|
|||||||
/* Local prototypes */
|
/* Local prototypes */
|
||||||
static u32 acpi_ex_digits_needed(u64 value, u32 base);
|
static u32 acpi_ex_digits_needed(u64 value, u32 base);
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ex_enter_interpreter
|
* FUNCTION: acpi_ex_enter_interpreter
|
||||||
@ -409,5 +408,3 @@ u8 acpi_is_valid_space_id(u8 space_id)
|
|||||||
|
|
||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -24,7 +24,6 @@ acpi_status acpi_ns_unload_namespace(acpi_handle handle);
|
|||||||
static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle);
|
static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ACPI_NO_METHOD_EXECUTION
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_ns_load_table
|
* FUNCTION: acpi_ns_load_table
|
||||||
@ -297,4 +296,3 @@ acpi_status acpi_ns_unload_namespace(acpi_handle handle)
|
|||||||
return_ACPI_STATUS(status);
|
return_ACPI_STATUS(status);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
@ -428,7 +428,7 @@ acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state)
|
|||||||
parser_state = &walk_state->parser_state;
|
parser_state = &walk_state->parser_state;
|
||||||
walk_state->arg_types = 0;
|
walk_state->arg_types = 0;
|
||||||
|
|
||||||
#if (!defined (ACPI_NO_METHOD_EXECUTION) && !defined (ACPI_CONSTANT_EVAL_ONLY))
|
#ifndef ACPI_CONSTANT_EVAL_ONLY
|
||||||
|
|
||||||
if (walk_state->walk_type & ACPI_WALK_METHOD_RESTART) {
|
if (walk_state->walk_type & ACPI_WALK_METHOD_RESTART) {
|
||||||
|
|
||||||
|
@ -83,10 +83,7 @@ const struct acpi_predefined_names acpi_gbl_pre_defined_names[] = {
|
|||||||
{"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR(char, 2)},
|
{"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR(char, 2)},
|
||||||
{"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
|
{"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
|
||||||
{"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR(char, 1)},
|
{"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR(char, 1)},
|
||||||
|
|
||||||
#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
|
|
||||||
{"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR(char, 1)},
|
{"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR(char, 1)},
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Table terminator */
|
/* Table terminator */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user