diff options
| author | Vaibhav Gupta <[email protected]> | 2020-08-20 00:26:44 +0530 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2020-09-08 13:33:10 +0200 |
| commit | df7a9ec3bc12c6464491d3bee0e7983f48bc04e4 (patch) | |
| tree | ca2a11a22549a5d29b8a73b4cb31b94e08eccca3 /tools/perf/scripts/python/bin | |
| parent | fa41f2877429646ce062a034a6d5bfc4f8f04b8c (diff) | |
fbdev: lxfb: use generic power management
Switch to the new generic framework by updating function signatures and
define a "struct dev_pm_ops" variable to bind PM callbacks. This way we can
remove the legacy .suspend & .resume bindings from "lxfb_driver".
The lxfb_suspend() is designed to function only in the case of Suspend.
Thus, the code was kept inside "if (state.event == PM_EVENT_SUSPEND)"
container. This is because, in the legacy framework, this callback was
invoked even in the event of Freeze and Hibernate. Hence, added the load of
unnecessary function-calls.
The goal can be achieved by binding the callback with only
"lxfb_pm_ops.suspend" in the new framework. This also avoids the step of
checking "if (state.event == PM_EVENT_SUSPEND)" every time the callback is
invoked.
Signed-off-by: Vaibhav Gupta <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Vaibhav Gupta <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Russell King <[email protected]>
Cc: Andres Salomon <[email protected]>
CC: Antonino Daplas <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions