Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174735
b: refs/heads/master
c: 4c0eec7
h: refs/heads/master
i:
  174733: ad05b25
  174731: 351dfe7
  174727: c532e96
  174719: 54ce1bc
v: v3
  • Loading branch information
Tejun Heo authored and Jesse Barnes committed Nov 4, 2009
1 parent c0cb0cb commit dc944d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac1aa47b131416a6ff37eb1005a0a1d2541aad6c
refs/heads/master: 4c0eec7a86303ce6e3edf7825d0ef1d414e76767
2 changes: 0 additions & 2 deletions trunk/arch/sparc/include/asm/pci_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#define PCI_IRQ_NONE 0xffffffff

#define PCI_CACHE_LINE_BYTES 64

static inline void pcibios_set_master(struct pci_dev *dev)
{
/* No special bus mastering setup handling */
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/sparc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,3 +1081,10 @@ void pci_resource_to_user(const struct pci_dev *pdev, int bar,
*start = rp->start - offset;
*end = rp->end - offset;
}

static int __init pcibios_init(void)
{
pci_dfl_cache_line_size = 64 >> 2;
return 0;
}
subsys_initcall(pcibios_init);
6 changes: 1 addition & 5 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@ unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE;
unsigned long pci_hotplug_io_size = DEFAULT_HOTPLUG_IO_SIZE;
unsigned long pci_hotplug_mem_size = DEFAULT_HOTPLUG_MEM_SIZE;

#ifndef PCI_CACHE_LINE_BYTES
#define PCI_CACHE_LINE_BYTES L1_CACHE_BYTES
#endif

/*
* The default CLS is used if arch didn't set CLS explicitly and not
* all pci devices agree on the same value. Arch can override either
* the dfl or actual value as it sees fit. Don't forget this is
* measured in 32-bit words, not bytes.
*/
u8 pci_dfl_cache_line_size __initdata = PCI_CACHE_LINE_BYTES >> 2;
u8 pci_dfl_cache_line_size __initdata = L1_CACHE_BYTES >> 2;
u8 pci_cache_line_size;

/**
Expand Down

0 comments on commit dc944d0

Please sign in to comment.