diff options
author | Mario Limonciello <[email protected]> | 2022-04-02 18:11:22 -0500 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2022-04-04 16:26:09 +0200 |
commit | 753ee989f7cf0c0a76a7f56956827a8863a60f97 (patch) | |
tree | 337cd389dd808b0f51a4fcc163d1641383d47d14 /lib/memory-notifier-error-inject.c | |
parent | 487532ec20c1a0b9fc85c1265fa81f04a151f007 (diff) |
platform/x86: amd-pmc: Fix compilation without CONFIG_SUSPEND
Since commit b1f66033cd4e ("platform/x86: amd-pmc: Move to later in the
suspend process") amd-pmc doesn't use traditional suspend resume
callback anymore but relies on functions only created declared when
CONFIG_SUSPEND is set.
Check for CONFIG_SUSPEND and only use those functions in those
circumstances.
Fixes: commit b1f66033cd4e ("platform/x86: amd-pmc: Move to later in the suspend process")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions