diff options
| author | Andre Przywara <[email protected]> | 2022-06-17 09:59:44 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2022-06-24 17:12:29 +0800 |
| commit | c2a1b91e47984e477298912ffd55570095d67318 (patch) | |
| tree | 14596087050a09898760398d72b0ae1a304556c1 /tools/perf/scripts/python/bin | |
| parent | f145d411a67efacc0731fc3f9c7b2d89fb62523a (diff) | |
crypto: qat - replace get_current_node() with numa_node_id()
Currently the QAT driver code uses a self-defined wrapper function
called get_current_node() when it wants to learn the current NUMA node.
This implementation references the topology_physical_package_id[] array,
which more or less coincidentally contains the NUMA node id, at least
on x86.
Because this is not universal, and Linux offers a direct function to
learn the NUMA node ID, replace that function with a call to
numa_node_id(), which would work everywhere.
This fixes the QAT driver operation on arm64 machines.
Reported-by: Yoan Picchi <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Signed-off-by: Yoan Picchi <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions