Lines Matching +full:acpi +full:- +full:based
1 // SPDX-License-Identifier: GPL-2.0-only
3 * test module to check whether the TSC-based delay routine continues
4 * to work properly after cpufreq transitions. Needs ACPI to work
7 * Based partly on the Power Management Timer (PMTMR) code to be found
20 * TSC-based delay routine on the Linux kernel does not correctly
22 * linux-[email protected]
29 #include <linux/acpi.h>
34 /*helper function to safely read acpi pm timesource*/
39 * chipsets (ICH4, PIIX4 and PIIX4E) where the ACPI PM time in read_pmtmr()
60 /* the following code snipped is copied from arch/x86/kernel/acpi/boot.c in cpufreq_test_tsc()
63 /* detect the location of the ACPI PM Timer */ in cpufreq_test_tsc()
83 printk(KERN_DEBUG "start--> \n"); in cpufreq_test_tsc()
90 diff = (now - then) & 0xFFFFFF; in cpufreq_test_tsc()
91 diff_tsc = now_tsc - then_tsc; in cpufreq_test_tsc()
96 printk(KERN_DEBUG "<-- end \n"); in cpufreq_test_tsc()
97 return -ENODEV; in cpufreq_test_tsc()
110 MODULE_DESCRIPTION("Verify the TSC cpufreq notifier working correctly -- needs ACPI-enabled system"…