diff options
Diffstat (limited to 'arch/arm64/kernel/suspend.c')
-rw-r--r-- | arch/arm64/kernel/suspend.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 2d6b6065fe7f..d7daf45ae7a2 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c | |||
@@ -1,7 +1,6 @@ | |||
1 | #include <linux/percpu.h> | 1 | #include <linux/percpu.h> |
2 | #include <linux/slab.h> | 2 | #include <linux/slab.h> |
3 | #include <asm/cacheflush.h> | 3 | #include <asm/cacheflush.h> |
4 | #include <asm/cpu_ops.h> | ||
5 | #include <asm/debug-monitors.h> | 4 | #include <asm/debug-monitors.h> |
6 | #include <asm/pgtable.h> | 5 | #include <asm/pgtable.h> |
7 | #include <asm/memory.h> | 6 | #include <asm/memory.h> |
@@ -51,26 +50,6 @@ void __init cpu_suspend_set_dbg_restorer(void (*hw_bp_restore)(void *)) | |||
51 | hw_breakpoint_restore = hw_bp_restore; | 50 | hw_breakpoint_restore = hw_bp_restore; |
52 | } | 51 | } |
53 | 52 | ||
54 | /** | ||
55 | * cpu_suspend() - function to enter a low-power state | ||
56 | * @arg: argument to pass to CPU suspend operations | ||
57 | * | ||
58 | * Return: 0 on success, -EOPNOTSUPP if CPU suspend hook not initialized, CPU | ||
59 | * operations back-end error code otherwise. | ||
60 | */ | ||
61 | int cpu_suspend(unsigned long arg) | ||
62 | { | ||
63 | int cpu = smp_processor_id(); | ||
64 | |||
65 | /* | ||
66 | * If cpu_ops have not been registered or suspend | ||
67 | * has not been initialized, cpu_suspend call fails early. | ||
68 | */ | ||
69 | if (!cpu_ops[cpu] || !cpu_ops[cpu]->cpu_suspend) | ||
70 | return -EOPNOTSUPP; | ||
71 | return cpu_ops[cpu]->cpu_suspend(arg); | ||
72 | } | ||
73 | |||
74 | /* | 53 | /* |
75 | * __cpu_suspend | 54 | * __cpu_suspend |
76 | * | 55 | * |