File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include <asm/io.h>
20
20
#include <asm/system.h>
21
- #include <asm/cache.h> /* for L1_CACHE_BYTES */
22
21
#include <asm/superio.h>
23
22
24
23
#define DEBUG_RESOURCES 0
@@ -123,6 +122,10 @@ static int __init pcibios_init(void)
123
122
} else {
124
123
printk (KERN_WARNING "pci_bios != NULL but init() is!\n" );
125
124
}
125
+
126
+ /* Set the CLS for PCI as early as possible. */
127
+ pci_cache_line_size = pci_dfl_cache_line_size ;
128
+
126
129
return 0 ;
127
130
}
128
131
@@ -171,7 +174,7 @@ void pcibios_set_master(struct pci_dev *dev)
171
174
** upper byte is PCI_LATENCY_TIMER.
172
175
*/
173
176
pci_write_config_word (dev , PCI_CACHE_LINE_SIZE ,
174
- (0x80 << 8 ) | ( L1_CACHE_BYTES / sizeof ( u32 )) );
177
+ (0x80 << 8 ) | pci_cache_line_size );
175
178
}
176
179
177
180
You can’t perform that action at this time.
0 commit comments