aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2020-08-18 22:24:29 +0800
committerRafael J. Wysocki <[email protected]>2020-09-24 12:57:38 +0200
commita62d07e0006a3a3ce77041ca07f3c488ec880790 (patch)
tree5b8e0525239fe97a0dd807720fba1e7ac58bc41f /tools/perf/scripts/python/exported-sql-viewer.py
parent4eb3723f18e9ba4d4b13d82b6f7e68dd50a852ea (diff)
ACPI: Remove side effect of partly creating a node in acpi_get_node()
acpi_get_node() calls acpi_get_pxm() to evaluate the _PXM AML method for entries found in DSDT/SSDT. ACPI 6.3 sec 6.2.14 states "_PXM evaluates to an integer that identifies a device as belonging to a Proximity Domain defined in the System Resource Affinity Table (SRAT)." Hence a _PXM method should not result in creation of a new NUMA node. Before this patch, _PXM could result in partial instantiation of NUMA node, missing elements such as zone lists. A call to devm_kzalloc(), for example, results in a NULL pointer dereference. This patch therefore replaces the acpi_map_pxm_to_node() with a call to pxm_to_node(). Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Hanjun Guo <[email protected]> Reviewed-by: Barry Song <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions