Lines Matching refs:sleep_cpu
29 static int sleep_cpu = -EINVAL; variable
101 hdr->hartid = cpuid_to_hartid_map(sleep_cpu); in arch_hibernation_header_save()
125 sleep_cpu = riscv_hartid_to_cpuid(hdr->hartid); in arch_hibernation_header_restore()
126 if (sleep_cpu < 0) { in arch_hibernation_header_restore()
128 sleep_cpu = -EINVAL; in arch_hibernation_header_restore()
133 ret = bringup_hibernate_cpu(sleep_cpu); in arch_hibernation_header_restore()
135 sleep_cpu = -EINVAL; in arch_hibernation_header_restore()
150 sleep_cpu = smp_processor_id(); in swsusp_arch_suspend()
162 sleep_cpu = -EINVAL; in swsusp_arch_suspend()
407 if (sleep_cpu < 0) { in hibernate_resume_nonboot_cpu_disable()
412 return freeze_secondary_cpus(sleep_cpu); in hibernate_resume_nonboot_cpu_disable()