git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PCI: Handle case when no pci device can provide cache line size hint
[safe/jmp/linux-2.6]
/
drivers
/
pci
/
quirks.c
diff --git
a/drivers/pci/quirks.c
b/drivers/pci/quirks.c
index
7cfa7c3
..
f70f4e2
100644
(file)
--- a/
drivers/pci/quirks.c
+++ b/
drivers/pci/quirks.c
@@
-2629,7
+2629,7
@@
static int __init pci_apply_final_quirks(void)
if (!pci_cache_line_size) {
printk(KERN_DEBUG "PCI: CLS %u bytes, default %u\n",
cls << 2, pci_dfl_cache_line_size << 2);
- pci_cache_line_size = cls;
+ pci_cache_line_size = cls
? cls : pci_dfl_cache_line_size
;
}
return 0;