Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351072
b: refs/heads/master
c: 6be2649
h: refs/heads/master
v: v3
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed Feb 15, 2013
1 parent 89ddfc8 commit 9eba022
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da0d9fda3743769484d3db5a17a121599076e869
refs/heads/master: 6be264986152c498562f26b15ed73c70aa37ce48
5 changes: 5 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
0 disables intel_idle and fall back on acpi_idle.
1 to 6 specify maximum depth of C-state.

intel_pstate= [X86]
disable
Do not enable intel_pstate as the default
scaling driver for the supported processors

intremap= [X86-64, Intel-IOMMU]
on enable Interrupt Remapping (default)
off disable Interrupt Remapping
Expand Down
16 changes: 16 additions & 0 deletions trunk/drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,16 @@ static void intel_pstate_exit(void)
}
module_exit(intel_pstate_exit);

static int __initdata no_load;

static int __init intel_pstate_init(void)
{
int rc = 0;
const struct x86_cpu_id *id;

if (no_load)
return -ENODEV;

id = x86_match_cpu(intel_pstate_cpu_ids);
if (!id)
return -ENODEV;
Expand All @@ -802,6 +807,17 @@ static int __init intel_pstate_init(void)
}
device_initcall(intel_pstate_init);

static int __init intel_pstate_setup(char *str)
{
if (!str)
return -EINVAL;

if (!strcmp(str, "disable"))
no_load = 1;
return 0;
}
early_param("intel_pstate", intel_pstate_setup);

MODULE_AUTHOR("Dirk Brandewie <dirk.j.brandewie@intel.com>");
MODULE_DESCRIPTION("'intel_pstate' - P state driver Intel Core processors");
MODULE_LICENSE("GPL");

0 comments on commit 9eba022

Please sign in to comment.