diff options
| author | Finn Thain <[email protected]> | 2018-07-02 04:21:18 -0400 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-07-31 19:56:40 +1000 |
| commit | c57902d52e2d61299872ddc89645d3aa299f1b91 (patch) | |
| tree | 2ee789150109b1c10726a4ef36b8aee63ea95cf7 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7ad94699a94b388780e40158e6954a22b68e9d20 (diff) | |
macintosh/via-pmu: Enhance state machine with new 'uninitialized' state
On 68k Macs, the via/vias pointer can't be used to determine whether
the PMU driver has been initialized. For portability, add a new state
to indicate that via_find_pmu() succeeded.
After via_find_pmu() executes, testing vias == NULL is equivalent to
testing via == NULL. Replace these tests with pmu_state == uninitialized
which is simpler and more consistent. No functional change.
Tested-by: Stan Johnson <[email protected]>
Signed-off-by: Finn Thain <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions