vsmp_64.c (80c5520811d3805adcb15c570ea5e2d489fa5d0b) | vsmp_64.c (70511134f61bd6e5eed19f767381f9fb3e762d49) |
---|---|
1/* 2 * vSMPowered(tm) systems specific initialization 3 * Copyright (C) 2005 ScaleMP Inc. 4 * 5 * Use of this code is subject to the terms and conditions of the 6 * GNU general public license version 2. See "COPYING" or 7 * http://www.gnu.org/licenses/gpl.html 8 * --- 8 unchanged lines hidden (view full) --- 17#include <linux/pci_regs.h> 18 19#include <asm/apic.h> 20#include <asm/pci-direct.h> 21#include <asm/io.h> 22#include <asm/paravirt.h> 23#include <asm/setup.h> 24 | 1/* 2 * vSMPowered(tm) systems specific initialization 3 * Copyright (C) 2005 ScaleMP Inc. 4 * 5 * Use of this code is subject to the terms and conditions of the 6 * GNU general public license version 2. See "COPYING" or 7 * http://www.gnu.org/licenses/gpl.html 8 * --- 8 unchanged lines hidden (view full) --- 17#include <linux/pci_regs.h> 18 19#include <asm/apic.h> 20#include <asm/pci-direct.h> 21#include <asm/io.h> 22#include <asm/paravirt.h> 23#include <asm/setup.h> 24 |
25#ifdef CONFIG_PARAVIRT | 25#if defined CONFIG_PCI && defined CONFIG_PARAVIRT |
26/* 27 * Interrupt control on vSMPowered systems: 28 * ~AC is a shadow of IF. If IF is 'on' AC should be 'off' 29 * and vice versa. 30 */ 31 32static unsigned long vsmp_save_fl(void) 33{ --- 75 unchanged lines hidden (view full) --- 109 early_iounmap(address, 8); 110} 111#else 112static void __init set_vsmp_pv_ops(void) 113{ 114} 115#endif 116 | 26/* 27 * Interrupt control on vSMPowered systems: 28 * ~AC is a shadow of IF. If IF is 'on' AC should be 'off' 29 * and vice versa. 30 */ 31 32static unsigned long vsmp_save_fl(void) 33{ --- 75 unchanged lines hidden (view full) --- 109 early_iounmap(address, 8); 110} 111#else 112static void __init set_vsmp_pv_ops(void) 113{ 114} 115#endif 116 |
117#ifdef CONFIG_PCI |
|
117static int is_vsmp = -1; 118 119static void __init detect_vsmp_box(void) 120{ 121 is_vsmp = 0; 122 123 if (!early_pci_allowed()) 124 return; --- 9 unchanged lines hidden (view full) --- 134 if (is_vsmp != -1) 135 return is_vsmp; 136 else { 137 WARN_ON_ONCE(1); 138 return 0; 139 } 140} 141 | 118static int is_vsmp = -1; 119 120static void __init detect_vsmp_box(void) 121{ 122 is_vsmp = 0; 123 124 if (!early_pci_allowed()) 125 return; --- 9 unchanged lines hidden (view full) --- 135 if (is_vsmp != -1) 136 return is_vsmp; 137 else { 138 WARN_ON_ONCE(1); 139 return 0; 140 } 141} 142 |
143#else 144static void __init detect_vsmp_box(void) 145{ 146} 147int is_vsmp_box(void) 148{ 149 return 0; 150} 151#endif |
|
142void __init vsmp_init(void) 143{ 144 detect_vsmp_box(); 145 if (!is_vsmp_box()) 146 return; 147 148 set_vsmp_pv_ops(); 149 return; 150} | 152void __init vsmp_init(void) 153{ 154 detect_vsmp_box(); 155 if (!is_vsmp_box()) 156 return; 157 158 set_vsmp_pv_ops(); 159 return; 160} |