diff options
| author | Ram Pai <[email protected]> | 2017-11-06 00:50:49 -0800 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-12-20 18:57:23 +1100 |
| commit | 7b84947cadf18f9a7763f281509db1f24073b4af (patch) | |
| tree | 639e0cf44a56bcbd031714cbec988ec51faa82d1 /tools/perf/scripts/python | |
| parent | bf9a95f9a6481bc6ec98ef7b328c14177eeb3492 (diff) | |
powerpc: shifted-by-one hidx value
0xf is considered invalid hidx value. It indicates absence of a backing
HPTE. A PTE is initialized to 0xf either
a) when it is new it is newly allocated to hold 4k-backing-HPTE
or
b) Any time it gets demoted to a 4k-backing-HPTE
This patch shifts the representation by one-modulo-0xf; i.e hidx 0 is
represented as 1, 1 as 2,... , and 0xf as 0. This convention lets us
initialize the secondary-part of the PTE to all zeroes. PTEs are anyway
zero'd when allocated. We do not have to zero them again; thus saving on
the initialization.
Signed-off-by: Ram Pai <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions