Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34359
b: refs/heads/master
c: 6595413
h: refs/heads/master
i:
  34357: c69f70d
  34355: 642a7b1
  34351: b1de430
v: v3
  • Loading branch information
Rafa� Bilski authored and Dave Jones committed Aug 14, 2006
1 parent 2a869d5 commit 6459071
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 179da8e6e8903a8cdb19bb12672d50dc33f0fde6
refs/heads/master: 6595413fc9453a211f4b5d5cc42f0bbf3daa615b
9 changes: 6 additions & 3 deletions trunk/arch/i386/kernel/cpu/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int port22_en = 0;

/* Module parameters */
static int dont_scale_voltage;

static int ignore_latency = 0;

#define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "longhaul", msg)

Expand Down Expand Up @@ -665,8 +665,10 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy)
if (longhaul_version == TYPE_POWERSAVER) {
/* Check ACPI support for C3 state */
cx = &pr->power.states[ACPI_STATE_C3];
if (cx->address == 0 || cx->latency > 1000)
if (cx->address == 0 ||
(cx->latency > 1000 && ignore_latency == 0) )
goto err_acpi;

} else {
/* Check ACPI support for bus master arbiter disable */
if (!pr->flags.bm_control) {
Expand Down Expand Up @@ -773,11 +775,12 @@ static void __exit longhaul_exit(void)

module_param (dont_scale_voltage, int, 0644);
MODULE_PARM_DESC(dont_scale_voltage, "Don't scale voltage of processor");
module_param(ignore_latency, int, 0644);
MODULE_PARM_DESC(ignore_latency, "Skip ACPI C3 latency test");

MODULE_AUTHOR ("Dave Jones <davej@codemonkey.org.uk>");
MODULE_DESCRIPTION ("Longhaul driver for VIA Cyrix processors.");
MODULE_LICENSE ("GPL");

late_initcall(longhaul_init);
module_exit(longhaul_exit);

0 comments on commit 6459071

Please sign in to comment.