Commit e43b3cec711a61edf047adf6204d542f3a659ef8
1 parent
ab3cd8670e
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
arch/x86/kernel/setup.c
... | ... | @@ -612,6 +612,7 @@ |
612 | 612 | |
613 | 613 | static bool __init snb_gfx_workaround_needed(void) |
614 | 614 | { |
615 | +#ifdef CONFIG_PCI | |
615 | 616 | int i; |
616 | 617 | u16 vendor, devid; |
617 | 618 | static const __initconst u16 snb_ids[] = { |
... | ... | @@ -636,6 +637,7 @@ |
636 | 637 | for (i = 0; i < ARRAY_SIZE(snb_ids); i++) |
637 | 638 | if (devid == snb_ids[i]) |
638 | 639 | return true; |
640 | +#endif | |
639 | 641 | |
640 | 642 | return false; |
641 | 643 | } |