Skip to content

Commit

Permalink
x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI
Browse files Browse the repository at this point in the history
early_pci_allowed() and read_pci_config_16() are only available if
CONFIG_PCI is defined.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
H. Peter Anvin committed Jan 14, 2013
1 parent ab3cd86 commit e43b3ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10;

static bool __init snb_gfx_workaround_needed(void)
{
#ifdef CONFIG_PCI
int i;
u16 vendor, devid;
static const __initconst u16 snb_ids[] = {
Expand All @@ -636,6 +637,7 @@ static bool __init snb_gfx_workaround_needed(void)
for (i = 0; i < ARRAY_SIZE(snb_ids); i++)
if (devid == snb_ids[i])
return true;
#endif

return false;
}
Expand Down

0 comments on commit e43b3ce

Please sign in to comment.