Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108503
b: refs/heads/master
c: 9f497bc
h: refs/heads/master
i:
  108501: 216d6a3
  108499: 8ceeabb
  108495: ee1b029
v: v3
  • Loading branch information
Milan Broz authored and Andi Kleen committed Aug 15, 2008
1 parent 81203d4 commit 8060125
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 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: fa46d3526461e8aa7c0fb39cc1b98ac656695a43
refs/heads/master: 9f497bcc695fb828da023d74ad3c966b1e58ad21
12 changes: 5 additions & 7 deletions trunk/drivers/acpi/pci_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ static int __init acpi_irq_penalty_update(char *str, int used)
if (irq < 0)
continue;

if (irq >= ARRAY_SIZE(acpi_irq_penalty))
if (irq >= ACPI_MAX_IRQS)
continue;

if (used)
Expand All @@ -872,12 +872,10 @@ static int __init acpi_irq_penalty_update(char *str, int used)
*/
void acpi_penalize_isa_irq(int irq, int active)
{
if (irq >= 0 && irq < ARRAY_SIZE(acpi_irq_penalty)) {
if (active)
acpi_irq_penalty[irq] += PIRQ_PENALTY_ISA_USED;
else
acpi_irq_penalty[irq] += PIRQ_PENALTY_PCI_USING;
}
if (active)
acpi_irq_penalty[irq] += PIRQ_PENALTY_ISA_USED;
else
acpi_irq_penalty[irq] += PIRQ_PENALTY_PCI_USING;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static DEFINE_MUTEX(performance_mutex);
* 0 -> cpufreq low level drivers initialized -> consider _PPC values
* 1 -> ignore _PPC totally -> forced by user through boot param
*/
static unsigned int ignore_ppc = -1;
static int ignore_ppc = -1;
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");
Expand Down

0 comments on commit 8060125

Please sign in to comment.