diff options
author | Jesse Brandeburg <[email protected]> | 2024-03-05 18:50:22 -0800 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-03-29 08:58:43 -0700 |
commit | 75a3f93b53832449c2c58a527a3865394cc656ba (patch) | |
tree | 966f18666d9a60cdc0eddc38e0f875606bbce18c /tools/perf/scripts/python/libxed.py | |
parent | 47220a1e0b701d144ef20131f31566cf0815095f (diff) |
net: intel: implement modern PM ops declarations
Switch the Intel networking drivers to use the new power management ops
declaration formats and macros, which allows us to drop __maybe_unused,
as well as a bunch of ifdef checking CONFIG_PM.
This is safe to do because the compiler drops the unused functions,
verified by checking for any of the power management function symbols
being present in System.map for a build without CONFIG_PM.
If a driver has runtime PM, define the ops with pm_ptr(), and if the
driver has Simple PM, use pm_sleep_ptr(), as well as the new versions of
the macros for declaring the members of the pm_ops structs.
Checked with network-enabled allnoconfig, allyesconfig, allmodconfig on
x64_64.
Reviewed-by: Alan Brady <[email protected]>
Signed-off-by: Jesse Brandeburg <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions