Searched refs:sleep_cpu (Results 1 – 4 of 4) sorted by relevance
57 static int sleep_cpu = -EINVAL; variable126 if (sleep_cpu < 0) { in arch_hibernation_header_save()130 hdr->sleep_cpu_mpidr = cpu_logical_map(sleep_cpu); in arch_hibernation_header_save()131 pr_info("Hibernating on CPU %d [mpidr:0x%llx]\n", sleep_cpu, in arch_hibernation_header_save()150 sleep_cpu = get_logical_index(hdr->sleep_cpu_mpidr); in arch_hibernation_header_restore()151 pr_info("Hibernated on CPU %d [mpidr:0x%llx]\n", sleep_cpu, in arch_hibernation_header_restore()153 if (sleep_cpu < 0) { in arch_hibernation_header_restore()155 sleep_cpu = -EINVAL; in arch_hibernation_header_restore()159 ret = bringup_hibernate_cpu(sleep_cpu); in arch_hibernation_header_restore()161 sleep_cpu = -EINVAL; in arch_hibernation_header_restore()[all …]
29 static int sleep_cpu = -EINVAL; variable101 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()[all …]
109 int bringup_hibernate_cpu(unsigned int sleep_cpu);
1803 int bringup_hibernate_cpu(unsigned int sleep_cpu) in bringup_hibernate_cpu() argument1807 if (!cpu_online(sleep_cpu)) { in bringup_hibernate_cpu()1809 ret = cpu_up(sleep_cpu, CPUHP_ONLINE); in bringup_hibernate_cpu()