lkml.org 
[lkml]   [2013]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 32/33] x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI
    Date
    3.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "H. Peter Anvin" <hpa@linux.intel.com>

    commit e43b3cec711a61edf047adf6204d542f3a659ef8 upstream.

    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>
    Signed-off-by: Abdallah Chatila <abdallah.chatila@ericsson.com>

    ---
    arch/x86/kernel/setup.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/arch/x86/kernel/setup.c
    +++ b/arch/x86/kernel/setup.c
    @@ -622,6 +622,7 @@ static unsigned reserve_low = CONFIG_X86

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

    return false;
    }



    \
     
     \ /
      Last update: 2013-02-01 12:44    [W:4.352 / U:0.240 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site