diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/process.c | 7 | ||||
-rw-r--r-- | arch/i386/pci/common.c | 4 | ||||
-rw-r--r-- | arch/i386/pci/direct.c | 2 | ||||
-rw-r--r-- | arch/i386/pci/i386.c | 7 |
4 files changed, 8 insertions, 12 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 1cb261f225d5..df6c2bcde067 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -393,13 +393,6 @@ void flush_thread(void) | |||
393 | { | 393 | { |
394 | struct task_struct *tsk = current; | 394 | struct task_struct *tsk = current; |
395 | 395 | ||
396 | /* | ||
397 | * Remove function-return probe instances associated with this task | ||
398 | * and put them back on the free list. Do not insert an exit probe for | ||
399 | * this function, it will be disabled by kprobe_flush_task if you do. | ||
400 | */ | ||
401 | kprobe_flush_task(tsk); | ||
402 | |||
403 | memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8); | 396 | memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8); |
404 | memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array)); | 397 | memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array)); |
405 | /* | 398 | /* |
diff --git a/arch/i386/pci/common.c b/arch/i386/pci/common.c index c96bea14b98f..f6bc48da4d2a 100644 --- a/arch/i386/pci/common.c +++ b/arch/i386/pci/common.c | |||
@@ -132,7 +132,7 @@ struct pci_bus * __devinit pcibios_scan_root(int busnum) | |||
132 | } | 132 | } |
133 | } | 133 | } |
134 | 134 | ||
135 | printk("PCI: Probing PCI hardware (bus %02x)\n", busnum); | 135 | printk(KERN_DEBUG "PCI: Probing PCI hardware (bus %02x)\n", busnum); |
136 | 136 | ||
137 | return pci_scan_bus_parented(NULL, busnum, &pci_root_ops, NULL); | 137 | return pci_scan_bus_parented(NULL, busnum, &pci_root_ops, NULL); |
138 | } | 138 | } |
@@ -144,7 +144,7 @@ static int __init pcibios_init(void) | |||
144 | struct cpuinfo_x86 *c = &boot_cpu_data; | 144 | struct cpuinfo_x86 *c = &boot_cpu_data; |
145 | 145 | ||
146 | if (!raw_pci_ops) { | 146 | if (!raw_pci_ops) { |
147 | printk("PCI: System does not support PCI\n"); | 147 | printk(KERN_WARNING "PCI: System does not support PCI\n"); |
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
150 | 150 | ||
diff --git a/arch/i386/pci/direct.c b/arch/i386/pci/direct.c index 30b7e9b4f6a2..94331d6be7a3 100644 --- a/arch/i386/pci/direct.c +++ b/arch/i386/pci/direct.c | |||
@@ -201,7 +201,7 @@ static int __init pci_sanity_check(struct pci_raw_ops *o) | |||
201 | return 1; | 201 | return 1; |
202 | } | 202 | } |
203 | 203 | ||
204 | DBG("PCI: Sanity check failed\n"); | 204 | DBG(KERN_WARNING "PCI: Sanity check failed\n"); |
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |
207 | 207 | ||
diff --git a/arch/i386/pci/i386.c b/arch/i386/pci/i386.c index 6d6338500c3c..ed2c8c899bd3 100644 --- a/arch/i386/pci/i386.c +++ b/arch/i386/pci/i386.c | |||
@@ -221,6 +221,11 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask) | |||
221 | continue; | 221 | continue; |
222 | 222 | ||
223 | r = &dev->resource[idx]; | 223 | r = &dev->resource[idx]; |
224 | if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM))) | ||
225 | continue; | ||
226 | if ((idx == PCI_ROM_RESOURCE) && | ||
227 | (!(r->flags & IORESOURCE_ROM_ENABLE))) | ||
228 | continue; | ||
224 | if (!r->start && r->end) { | 229 | if (!r->start && r->end) { |
225 | printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev)); | 230 | printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev)); |
226 | return -EINVAL; | 231 | return -EINVAL; |
@@ -230,8 +235,6 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask) | |||
230 | if (r->flags & IORESOURCE_MEM) | 235 | if (r->flags & IORESOURCE_MEM) |
231 | cmd |= PCI_COMMAND_MEMORY; | 236 | cmd |= PCI_COMMAND_MEMORY; |
232 | } | 237 | } |
233 | if (dev->resource[PCI_ROM_RESOURCE].start) | ||
234 | cmd |= PCI_COMMAND_MEMORY; | ||
235 | if (cmd != old_cmd) { | 238 | if (cmd != old_cmd) { |
236 | printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd); | 239 | printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd); |
237 | pci_write_config_word(dev, PCI_COMMAND, cmd); | 240 | pci_write_config_word(dev, PCI_COMMAND, cmd); |