Lines Matching +full:idle +full:- +full:halt

1 // SPDX-License-Identifier: GPL-2.0-only
66 (highest_subcstate - 1); in power_saving_mwait_init()
83 /* TSC could halt in idle */ in power_saving_mwait_init()
90 static int tsk_in_cpu[NR_CPUS] = {[0 ... NR_CPUS-1] = -1};
97 unsigned long min_weight = -1; in round_robin_cpu()
123 if (tsk_in_cpu[tsk_index] != -1) in round_robin_cpu()
139 if (tsk_in_cpu[tsk_index] != -1) { in exit_round_robin()
141 tsk_in_cpu[tsk_index] = -1; in exit_round_robin()
167 expire_time = jiffies + HZ * (100 - idle_pct) / 100; in power_saving_thread()
171 /* TSC could halt in idle, so notify users */ in power_saving_thread()
172 mark_tsc_unstable("TSC halts in idle"); in power_saving_thread()
246 ps_tsk_num--; in destroy_power_saving_task()
286 return -EINVAL; in rrtime_store()
288 return -EINVAL; in rrtime_store()
308 return -EINVAL; in idlepct_store()
310 return -EINVAL; in idlepct_store()
330 return -EINVAL; in idlecpus_store()
356 * Query firmware how many CPUs should be idle
357 * return -1 on failure
363 int num = -1; in acpi_pad_pur()
373 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
374 package->package.count == 2 && in acpi_pad_pur()
375 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
377 num = package->package.elements[1].integer.value; in acpi_pad_pur()
419 acpi_bus_generate_netlink_event(adev->pnp.device_class, in acpi_pad_notify()
420 dev_name(&adev->dev), event, 0); in acpi_pad_notify()
430 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_pad_probe()
436 status = acpi_install_notify_handler(adev->handle, in acpi_pad_probe()
440 return -ENODEV; in acpi_pad_probe()
447 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); in acpi_pad_remove()
453 acpi_remove_notify_handler(adev->handle, in acpi_pad_remove()
477 return -ENODEV; in acpi_pad_init()
481 return -EINVAL; in acpi_pad_init()