Lines Matching +full:no +full:- +full:idle +full:- +full:on +full:- +full:init
1 // SPDX-License-Identifier: GPL-2.0-or-later
18 * arm_cpuidle_simple_enter() - a wrapper to cpu_do_idle()
37 * arm_cpuidle_suspend() - function to enter low power idle states
41 * registered at the init time.
53 * arm_cpuidle_get_ops() - find a registered cpuidle_ops by name
65 for (; m->method; m++) in arm_cpuidle_get_ops()
66 if (!strcmp(m->method, method)) in arm_cpuidle_get_ops()
67 return m->ops; in arm_cpuidle_get_ops()
73 * arm_cpuidle_read_ops() - Initialize the cpuidle ops with the device tree
77 * Get the method name defined in the 'enable-method' property, retrieve the
79 * cpuidle_ops are tagged __initconst and will be unloaded after the init
82 * Return 0 on sucess, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
83 * no cpuidle_ops is registered for the 'enable-method', or if either init or
91 enable_method = of_get_property(dn, "enable-method", NULL); in arm_cpuidle_read_ops()
93 return -ENOENT; in arm_cpuidle_read_ops()
97 pr_warn("%pOF: unsupported enable-method property: %s\n", in arm_cpuidle_read_ops()
99 return -EOPNOTSUPP; in arm_cpuidle_read_ops()
102 if (!ops->init || !ops->suspend) { in arm_cpuidle_read_ops()
103 pr_warn("cpuidle_ops '%s': no init or suspend callback\n", in arm_cpuidle_read_ops()
105 return -EOPNOTSUPP; in arm_cpuidle_read_ops()
110 pr_notice("cpuidle: enable-method property '%s'" in arm_cpuidle_read_ops()
117 * arm_cpuidle_init() - Initialize cpuidle_ops for a specific cpu
121 * the cpu's idle initialization callback. This may fail if the underlying HW
125 * 0 on success,
126 * -ENODEV if it fails to find the cpu node in the device tree,
127 * -EOPNOTSUPP if it does not find a registered and valid cpuidle_ops for
129 * -ENOENT if it fails to find an 'enable-method' property,
130 * -ENXIO if the HW reports a failure or a misconfiguration,
131 * -ENOMEM if the HW report an memory allocation failure
139 return -ENODEV; in arm_cpuidle_init()
143 ret = cpuidle_ops[cpu].init(cpu_node, cpu); in arm_cpuidle_init()