Lines Matching +full:idle +full:- +full:halt
1 // SPDX-License-Identifier: GPL-2.0-only
65 (highest_subcstate - 1); in power_saving_mwait_init()
82 /* TSC could halt in idle */ in power_saving_mwait_init()
89 static int tsk_in_cpu[NR_CPUS] = {[0 ... NR_CPUS-1] = -1};
96 unsigned long min_weight = -1; in round_robin_cpu()
122 if (tsk_in_cpu[tsk_index] != -1) in round_robin_cpu()
138 if (tsk_in_cpu[tsk_index] != -1) { in exit_round_robin()
140 tsk_in_cpu[tsk_index] = -1; in exit_round_robin()
166 expire_time = jiffies + HZ * (100 - idle_pct) / 100; in power_saving_thread()
170 /* TSC could halt in idle, so notify users */ in power_saving_thread()
171 mark_tsc_unstable("TSC halts in idle"); in power_saving_thread()
245 ps_tsk_num--; in destroy_power_saving_task()
285 return -EINVAL; in rrtime_store()
287 return -EINVAL; in rrtime_store()
307 return -EINVAL; in idlepct_store()
309 return -EINVAL; in idlepct_store()
329 return -EINVAL; in idlecpus_store()
355 * Query firmware how many CPUs should be idle
356 * return -1 on failure
362 int num = -1; in acpi_pad_pur()
372 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
373 package->package.count == 2 && in acpi_pad_pur()
374 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
376 num = package->package.elements[1].integer.value; in acpi_pad_pur()
418 acpi_bus_generate_netlink_event(adev->pnp.device_class, in acpi_pad_notify()
419 dev_name(&adev->dev), event, 0); in acpi_pad_notify()
429 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_pad_probe()
435 status = acpi_install_notify_handler(adev->handle, in acpi_pad_probe()
439 return -ENODEV; in acpi_pad_probe()
446 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_pad_remove()
452 acpi_remove_notify_handler(adev->handle, in acpi_pad_remove()
476 return -ENODEV; in acpi_pad_init()
480 return -EINVAL; in acpi_pad_init()