- 07 May, 2004 19 commits
-
-
Dave Jones authored
sa11x0_getspeed can be used by both cpu-sa1100.c and cpu-sa1110.c as ->get() function. Update calling conventions, and un-export it as we fixed the handling of cpufreq_get in the cpufreq core. Also, remove special call to userspace-governor init as it isn't needed any longer.
-
Dave Jones authored
arm-integrator had its ->get() implementation inside integrator_cpufreq_init(). Move it to an extra function, and add it as ->get() function.
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
but be careful as some code needs to run on specified CPU only.
-
Dave Jones authored
-
Dave Jones authored
powernow_k6 has almost all pieces in place for its own ->get() function. Add the rest.
-
Dave Jones authored
p4-clockmod is a bit more complicated as it might run on SMP, HT, and the instructions need to run on the specific (physical) CPU.
-
Dave Jones authored
Longrun users might be interested in their CPU's current frequency as well, so use a longrun-specific cpuid-call in longrun_get().
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
Notifications in i386, sparc64, x86_64, sh-sci and sa11xx-pcmcia notifiers. sa1100-framebuffer doesn't seem to be able to handle frequency transitions behind its back well. So, sa11xx will be marked CPUFREQ_PANIC_OUTOFSYNC | CPUFREQ_PANIC_RESUME_OUTOFSYNC later.
-
Dave Jones authored
Upon resuming, first CPUfreq hardware support needs to be re-enabled in certain cases (call to cpufreq_driver->resume()). Then, two different paths may need to be taken: a) frequency during suspend equals frequency during resume ==> everything is fine, b) frequency differ ==> either we can't handle it, then panic (see flag CPUFREQ_PANIC_RESUME_OUTOFSYNC). Or we can handle it, then notify all
-
Dave Jones authored
Sometimes we might discover during a call to cpufreq_get() that we're "out of sync", meaning the actual CPU frequency changed "behind our back". If this happens, the flag CPUFREQ_PANIC_OUTOFSYNC decides what can be done: if it is set, the kernel panic's, it it is not set, the cpufreq transition notifiers are informed of this change, and a call to cpufreq_update_policy() is scheduled [using the default workqueue] so that the user-defined values override BIOS / external interaction.
-
Dave Jones authored
As it involves calls to hardware which might take some time, only let the super-user read out this value.
-
Dave Jones authored
Contrary to the previous implementation, it now calls the cpufreq driver, and reads out the _actual_ current frequency, and not the frequency the CPUfreq core _thinks_ the CPU is running at. Most cpufreq drivers do provide such a "hw get" function (only ACPI-io can definitely not be supported, I'm not sure about sh, sparc64 and powermac) anyway, and it is useful for other issues.
-
Dave Jones authored
Many users want to know the current cpu freqeuncy, even if not using the userspace frequency. On ->target cpufreq drivers (if they do their calls to cpufreq_notify_transition correctly) this just means reading out cpufreq_policy->cur.
-
- 22 Apr, 2004 3 commits
-
-
Dave Jones authored
From paul.devriendt@amd.com
-
Dave Jones authored
From paul.devriendt@amd.com
-
Dave Jones authored
cpuid changes to support new processors that will be coming out in the future. Also works around a processor that we have released to the field that can have an erroneous cpuid value. From paul.devriendt@amd.com
-
- 21 Apr, 2004 5 commits
-
-
Dave Jones authored
Brad Spengler <spender@grsecurity.net> found an exploitable bug in the proc handler of cpufreq, where a user-supplied unsigned int is cast to a signed int and then passed on to copy_[to|from]_user() allowing arbitary amounts of memory to be written (root only thankfully), or read (as any user). The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0228 to this issue.
-
Dave Jones authored
From Dominik.
-
Dave Jones authored
One big limitation of the ACPI specification is that it's impossible to detect the current P-State by reading from ACPI-defined registers. And the CPU isn't always at P0 when the system boots. So, try to "guess" the current P-State by analyzing cpu_khz. From Dominik.
-
Dave Jones authored
If used as a bootparam, this would've become powernow-k7.powernow_acpi_force which looks silly.
-
Dave Jones authored
Spotted by Charles Coffing <ccoffing@novell.com>
-
- 19 Apr, 2004 3 commits
-
-
Dave Jones authored
This breaks on x86-64 with the following warning. drivers/cpufreq/cpufreq_userspace.c: In function `cpufreq_procctl': drivers/cpufreq/cpufreq_userspace.c:170: warning: cast from pointer to integer of different size drivers/cpufreq/cpufreq_userspace.c: In function `cpufreq_sysctl': drivers/cpufreq/cpufreq_userspace.c:208: warning: cast from pointer to integer of different size
-
Dave Jones authored
We don't need this, we can infer from CONFIG_ACPI_PROCESSOR
-
Dave Jones authored
From Paul Devriendt
-
- 16 Apr, 2004 1 commit
-
-
Dave Jones authored
-
- 14 Apr, 2004 9 commits
-
-
Dave Jones authored
Decoding the legacy tables may have set these values.
-
Dave Jones authored
As much as I like the idea of a 13GHz laptop, setting it to 1.3GHz is probably for the best for the time being.
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
-
Dave Jones authored
Due to the possible dependancy on ACPI.
-
Dave Jones authored
acpi fallback is handled already in the init function.
-
Dave Jones authored
More from Bruno Ducrot. Warning: it will only half work on the ACER Aspire, though: there is no pstate in the DSDT corresponding to the max frequency... I'm looking how to handle that correctly, probably at the init stage, if the max frequency is not given, then add it to powernow_table. * Integrate acpi perflib from Dominik. * Use acpi if the PST tables are known to be broken (ASUS Aspire match one PST, but give brain damaged values), or use ACPI if no PST found.
-
Dave Jones authored
From: Dominik Brodowski <linux@dominikbrodowski.de> Don't use the ACPI data on CPUs we don't know nothing about.
-