pci-noop.c (57c8a661d95dff48dd9c2f2496139082bbaf241a) | pci-noop.c (7e1c4e27928e5f87b9b1eaf06dc31773b2f1e7f1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/pci-noop.c 4 * 5 * Stub PCI interfaces for Jensen-specific kernels. 6 */ 7 8#include <linux/pci.h> --- 19 unchanged lines hidden (view full) --- 28struct pci_controller *pci_isa_hose; 29 30 31struct pci_controller * __init 32alloc_pci_controller(void) 33{ 34 struct pci_controller *hose; 35 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/pci-noop.c 4 * 5 * Stub PCI interfaces for Jensen-specific kernels. 6 */ 7 8#include <linux/pci.h> --- 19 unchanged lines hidden (view full) --- 28struct pci_controller *pci_isa_hose; 29 30 31struct pci_controller * __init 32alloc_pci_controller(void) 33{ 34 struct pci_controller *hose; 35 |
36 hose = memblock_alloc(sizeof(*hose), 0); | 36 hose = memblock_alloc(sizeof(*hose), SMP_CACHE_BYTES); |
37 38 *hose_tail = hose; 39 hose_tail = &hose->next; 40 41 return hose; 42} 43 44struct resource * __init 45alloc_resource(void) 46{ | 37 38 *hose_tail = hose; 39 hose_tail = &hose->next; 40 41 return hose; 42} 43 44struct resource * __init 45alloc_resource(void) 46{ |
47 return memblock_alloc(sizeof(struct resource), 0); | 47 return memblock_alloc(sizeof(struct resource), SMP_CACHE_BYTES); |
48} 49 50SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus, 51 unsigned long, dfn) 52{ 53 struct pci_controller *hose; 54 55 /* from hose or from bus.devfn */ --- 49 unchanged lines hidden --- | 48} 49 50SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus, 51 unsigned long, dfn) 52{ 53 struct pci_controller *hose; 54 55 /* from hose or from bus.devfn */ --- 49 unchanged lines hidden --- |