Lines Matching +full:local +full:- +full:timer +full:- +full:stop
1 // SPDX-License-Identifier: GPL-2.0-only
31 static int tos_resident_cpu = -1;
42 * "enable-method" property of each CPU in the DT, but given that there is no
43 * arch-specific way to check this, we assume that the DT is sensible.
47 int migrate_type = -1; in psci_ops_check()
52 return -EOPNOTSUPP; in psci_ops_check()
66 if (tos_resident_cpu == -1) in psci_ops_check()
94 if (ret != -EBUSY) { in down_and_up_cpus()
101 if (ret != -EPERM) { in down_and_up_cpus()
156 return -ENOMEM; in alloc_init_cpu_groups()
162 return -ENOMEM; in alloc_init_cpu_groups()
174 return -ENOMEM; in alloc_init_cpu_groups()
188 int i, nb_cpu_group, err = -ENOMEM; in hotplug_tests()
217 page_buf[len - 1] = '\0'; in hotplug_tests()
236 struct cpuidle_state *state = &drv->states[index]; in suspend_cpu()
237 bool broadcast = state->flags & CPUIDLE_FLAG_TIMER_STOP; in suspend_cpu()
244 * The local timer will be shut down, we need to enter tick in suspend_cpu()
262 ret = state->enter(dev, drv, index); in suspend_cpu()
292 cpu, drv->state_count - 1); in suspend_test_thread()
301 for (index = 1; index < drv->state_count; ++index) { in suspend_test_thread()
303 struct cpuidle_state *state = &drv->states[index]; in suspend_test_thread()
306 * Set the timer to wake this CPU up in some time (which in suspend_test_thread()
308 * If the local tick is disabled when entering suspend, in suspend_test_thread()
310 * tick, so the timer will still wake us up. in suspend_test_thread()
313 usecs_to_jiffies(state->target_residency)); in suspend_test_thread()
321 * We have woken up. Re-enable IRQs to handle any in suspend_test_thread()
342 * Disable the timer to make sure that the timer will not trigger in suspend_test_thread()
376 return -ENOMEM; in suspend_tests()
379 * Stop cpuidle to prevent the idle tasks from entering a deep sleep in suspend_tests()
383 * the cpuidle driver and device look-up can be carried out safely. in suspend_tests()
409 err = -ENODEV; in suspend_tests()
427 /* Stop and destroy all threads, get return status. */ in suspend_tests()
480 case -ENOMEM: in psci_checker()
483 case -ENODEV: in psci_checker()