Skip to content

Commit

Permalink
Merge branches 'release' and 'ppc-workaround' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Feb 7, 2008
2 parents d870ec7 + 623b78c commit 4f4ae0d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ static DEFINE_MUTEX(performance_mutex);
* policy is adjusted accordingly.
*/

static unsigned int ignore_ppc = 0;
module_param(ignore_ppc, uint, 0644);
MODULE_PARM_DESC(ignore_ppc, "If the frequency of your machine gets wrongly" \
"limited by BIOS, this should help");

#define PPC_REGISTERED 1
#define PPC_IN_USE 2

Expand All @@ -72,6 +77,9 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,
struct acpi_processor *pr;
unsigned int ppc = 0;

if (ignore_ppc)
return 0;

mutex_lock(&performance_mutex);

if (event != CPUFREQ_INCOMPATIBLE)
Expand Down Expand Up @@ -130,7 +138,13 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)

int acpi_processor_ppc_has_changed(struct acpi_processor *pr)
{
int ret = acpi_processor_get_platform_limit(pr);
int ret;

if (ignore_ppc)
return 0;

ret = acpi_processor_get_platform_limit(pr);

if (ret < 0)
return (ret);
else
Expand Down

0 comments on commit 4f4ae0d

Please sign in to comment.