diff options
author | Tejun Heo <[email protected]> | 2011-04-01 11:15:12 +0200 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2011-04-01 11:15:12 +0200 |
commit | 052936080c8fb2f791103995b21bd4018c8df886 (patch) | |
tree | a195ff3279760f867b3b9120ed22f441f9e49f61 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 9d42a53e0f46505b39494041d514372235817e15 (diff) |
x86-64, NUMA: Remove custom phys_to_nid() implementation
phys_to_nid() maps physical address to NUMA node id. This is
implemented by building perfect hash in compute_hash_shift() during
initialization.
However, with SPARSE memory model, the nid is encoded in page flags.
The perfect hash implementation was for DISCONTIG memory model which
got removed years ago by b263295dbf (x86: 64-bit, make sparsemem
vmemmap the only memory model).
So, the perfect hash ends up being used only during initialization
when the core SPARSE code already provides perfectly acceptable
generic early_pfn_to_nid() implementation.
Drop phys_to_nid() and use the generic ealry_pfn_to_nid() instead.
Signed-off-by: Tejun Heo <[email protected]>
Reviewed-by: Christoph Lameter <[email protected]>
Acked-by: Yinghai Lu <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions