soc/intel/apollolake: Fix issues detected by checkpatch
Fix the following errors and warnings detected by checkpatch.pl: ERROR: switch and case should be at the same indent ERROR: do not use assignment in if condition WARNING: Statements terminations use 1 semicolon WARNING: unnecessary whitespace before a quoted newline WARNING: else is not generally useful after a break or return TEST=Build for reef Change-Id: I5486936dbf19b066c76179d929660affa1da5f16 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/18727 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
2d154e8213
commit
a444753596
4 changed files with 39 additions and 39 deletions
|
@ -58,7 +58,7 @@ static int acpi_sci_irq(void)
|
||||||
static unsigned long acpi_madt_irq_overrides(unsigned long current)
|
static unsigned long acpi_madt_irq_overrides(unsigned long current)
|
||||||
{
|
{
|
||||||
int sci = acpi_sci_irq();
|
int sci = acpi_sci_irq();
|
||||||
uint16_t flags = MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW;;
|
uint16_t flags = MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW;
|
||||||
|
|
||||||
/* INT_SRC_OVR */
|
/* INT_SRC_OVR */
|
||||||
current += acpi_create_madt_irqoverride((void *)current, 0, 0, 2, 0);
|
current += acpi_create_madt_irqoverride((void *)current, 0, 0, 2, 0);
|
||||||
|
|
|
@ -138,7 +138,7 @@ static bool punit_init(void)
|
||||||
/* P-unit not found */
|
/* P-unit not found */
|
||||||
printk(BIOS_DEBUG, "Punit MMIO not available\n");
|
printk(BIOS_DEBUG, "Punit MMIO not available\n");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
/* Set Punit interrupt pin IPIN offset 3D */
|
/* Set Punit interrupt pin IPIN offset 3D */
|
||||||
pci_write_config8(PUNIT_DEVFN, PCI_INTERRUPT_PIN, 0x2);
|
pci_write_config8(PUNIT_DEVFN, PCI_INTERRUPT_PIN, 0x2);
|
||||||
|
|
||||||
|
@ -168,7 +168,6 @@ static bool punit_init(void)
|
||||||
}
|
}
|
||||||
udelay(100);
|
udelay(100);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,8 @@ void set_max_freq(void)
|
||||||
eax = cpuid_eax(CPUID_LEAF_PM);
|
eax = cpuid_eax(CPUID_LEAF_PM);
|
||||||
|
|
||||||
msr = rdmsr(MSR_IA32_MISC_ENABLES);
|
msr = rdmsr(MSR_IA32_MISC_ENABLES);
|
||||||
if (!(eax &= 0x2) && ((msr.hi & APL_BURST_MODE_DISABLE) == 0)) {
|
eax &= 0x2;
|
||||||
|
if ((!eax) && ((msr.hi & APL_BURST_MODE_DISABLE) == 0)) {
|
||||||
/* Burst Mode has been factory configured as disabled
|
/* Burst Mode has been factory configured as disabled
|
||||||
* and is not available in this physical processor
|
* and is not available in this physical processor
|
||||||
* package.
|
* package.
|
||||||
|
|
Loading…
Reference in a new issue