diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-10-04 16:57:00 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-10-04 16:57:51 -0400 |
commit | c37d6154c0b9163c27e53cc1d0be3867b4abd760 (patch) | |
tree | 7a24522c56d1cb284dff1d3c225bbdaba0901bb5 /arch/tile | |
parent | e7a570ff7dff9af6e54ff5e580a61ec7652137a0 (diff) | |
parent | 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498 (diff) |
Merge branch 'disintegrate-asm-generic' of git://git.infradead.org/users/dhowells/linux-headers into asm-generic
Patches from David Howells <dhowells@redhat.com>:
This is to complete part of the UAPI disintegration for which the
preparatory patches were pulled recently.
Note that there are some fixup patches which are at the base of the
branch aimed at you, plus all arches get the asm-generic branch merged in too.
* 'disintegrate-asm-generic' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: (Scripted) Disintegrate include/asm-generic
UAPI: Fix conditional header installation handling (notably kvm_para.h on m68k)
c6x: remove c6x signal.h
UAPI: Split compound conditionals containing __KERNEL__ in Arm64
UAPI: Fix the guards on various asm/unistd.h files
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/Kconfig | 8 | ||||
-rw-r--r-- | arch/tile/configs/tilegx_defconfig | 1 | ||||
-rw-r--r-- | arch/tile/configs/tilepro_defconfig | 1 | ||||
-rw-r--r-- | arch/tile/include/asm/topology.h | 1 | ||||
-rw-r--r-- | arch/tile/include/asm/unistd.h | 5 | ||||
-rw-r--r-- | arch/tile/include/gxio/dma_queue.h | 2 | ||||
-rw-r--r-- | arch/tile/include/gxio/mpipe.h | 4 | ||||
-rw-r--r-- | arch/tile/include/gxio/trio.h | 4 | ||||
-rw-r--r-- | arch/tile/include/gxio/usb_host.h | 2 | ||||
-rw-r--r-- | arch/tile/include/hv/iorpc.h | 2 | ||||
-rw-r--r-- | arch/tile/include/uapi/arch/Kbuild | 1 | ||||
-rw-r--r-- | arch/tile/include/uapi/asm/Kbuild | 3 | ||||
-rw-r--r-- | arch/tile/kernel/pci.c | 34 | ||||
-rw-r--r-- | arch/tile/kernel/pci_gx.c | 8 |
14 files changed, 17 insertions, 59 deletions
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index 932e4430f7f3..c9a3c1fe7297 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig | |||
@@ -412,14 +412,6 @@ config TILE_USB | |||
412 | config NEED_BOUNCE_POOL | 412 | config NEED_BOUNCE_POOL |
413 | def_bool USB_OHCI_HCD | 413 | def_bool USB_OHCI_HCD |
414 | 414 | ||
415 | config HOTPLUG | ||
416 | bool "Support for hot-pluggable devices" | ||
417 | ---help--- | ||
418 | Say Y here if you want to plug devices into your computer while | ||
419 | the system is running, and be able to use them quickly. In many | ||
420 | cases, the devices can likewise be unplugged at any time too. | ||
421 | One well-known example of this is USB. | ||
422 | |||
423 | source "drivers/pci/hotplug/Kconfig" | 415 | source "drivers/pci/hotplug/Kconfig" |
424 | 416 | ||
425 | endmenu | 417 | endmenu |
diff --git a/arch/tile/configs/tilegx_defconfig b/arch/tile/configs/tilegx_defconfig index 0270620a1692..8c5eff6d6df5 100644 --- a/arch/tile/configs/tilegx_defconfig +++ b/arch/tile/configs/tilegx_defconfig | |||
@@ -134,7 +134,6 @@ CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m | |||
134 | CONFIG_NETFILTER_XT_TARGET_MARK=m | 134 | CONFIG_NETFILTER_XT_TARGET_MARK=m |
135 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | 135 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m |
136 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | 136 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m |
137 | CONFIG_NETFILTER_XT_TARGET_NOTRACK=m | ||
138 | CONFIG_NETFILTER_XT_TARGET_TEE=m | 137 | CONFIG_NETFILTER_XT_TARGET_TEE=m |
139 | CONFIG_NETFILTER_XT_TARGET_TPROXY=m | 138 | CONFIG_NETFILTER_XT_TARGET_TPROXY=m |
140 | CONFIG_NETFILTER_XT_TARGET_TRACE=m | 139 | CONFIG_NETFILTER_XT_TARGET_TRACE=m |
diff --git a/arch/tile/configs/tilepro_defconfig b/arch/tile/configs/tilepro_defconfig index c11de27a9bcb..e7a3dfcbcda7 100644 --- a/arch/tile/configs/tilepro_defconfig +++ b/arch/tile/configs/tilepro_defconfig | |||
@@ -132,7 +132,6 @@ CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m | |||
132 | CONFIG_NETFILTER_XT_TARGET_MARK=m | 132 | CONFIG_NETFILTER_XT_TARGET_MARK=m |
133 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | 133 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m |
134 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | 134 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m |
135 | CONFIG_NETFILTER_XT_TARGET_NOTRACK=m | ||
136 | CONFIG_NETFILTER_XT_TARGET_TEE=m | 135 | CONFIG_NETFILTER_XT_TARGET_TEE=m |
137 | CONFIG_NETFILTER_XT_TARGET_TPROXY=m | 136 | CONFIG_NETFILTER_XT_TARGET_TPROXY=m |
138 | CONFIG_NETFILTER_XT_TARGET_TRACE=m | 137 | CONFIG_NETFILTER_XT_TARGET_TRACE=m |
diff --git a/arch/tile/include/asm/topology.h b/arch/tile/include/asm/topology.h index 7a7ce390534f..d5e86c9f74fd 100644 --- a/arch/tile/include/asm/topology.h +++ b/arch/tile/include/asm/topology.h | |||
@@ -69,7 +69,6 @@ static inline const struct cpumask *cpumask_of_node(int node) | |||
69 | | 1*SD_BALANCE_FORK \ | 69 | | 1*SD_BALANCE_FORK \ |
70 | | 0*SD_BALANCE_WAKE \ | 70 | | 0*SD_BALANCE_WAKE \ |
71 | | 0*SD_WAKE_AFFINE \ | 71 | | 0*SD_WAKE_AFFINE \ |
72 | | 0*SD_PREFER_LOCAL \ | ||
73 | | 0*SD_SHARE_CPUPOWER \ | 72 | | 0*SD_SHARE_CPUPOWER \ |
74 | | 0*SD_SHARE_PKG_RESOURCES \ | 73 | | 0*SD_SHARE_PKG_RESOURCES \ |
75 | | 0*SD_SERIALIZE \ | 74 | | 0*SD_SERIALIZE \ |
diff --git a/arch/tile/include/asm/unistd.h b/arch/tile/include/asm/unistd.h index a017246ca0ce..0e1f3e66e492 100644 --- a/arch/tile/include/asm/unistd.h +++ b/arch/tile/include/asm/unistd.h | |||
@@ -12,9 +12,6 @@ | |||
12 | * more details. | 12 | * more details. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #if !defined(_ASM_TILE_UNISTD_H) || defined(__SYSCALL) | ||
16 | #define _ASM_TILE_UNISTD_H | ||
17 | |||
18 | #if !defined(__LP64__) || defined(__SYSCALL_COMPAT) | 15 | #if !defined(__LP64__) || defined(__SYSCALL_COMPAT) |
19 | /* Use the flavor of this syscall that matches the 32-bit API better. */ | 16 | /* Use the flavor of this syscall that matches the 32-bit API better. */ |
20 | #define __ARCH_WANT_SYNC_FILE_RANGE2 | 17 | #define __ARCH_WANT_SYNC_FILE_RANGE2 |
@@ -43,5 +40,3 @@ __SYSCALL(__NR_cmpxchg_badaddr, sys_cmpxchg_badaddr) | |||
43 | #endif | 40 | #endif |
44 | #define __ARCH_WANT_SYS_NEWFSTATAT | 41 | #define __ARCH_WANT_SYS_NEWFSTATAT |
45 | #endif | 42 | #endif |
46 | |||
47 | #endif /* _ASM_TILE_UNISTD_H */ | ||
diff --git a/arch/tile/include/gxio/dma_queue.h b/arch/tile/include/gxio/dma_queue.h index 00654feb7db0..b9e45e37649e 100644 --- a/arch/tile/include/gxio/dma_queue.h +++ b/arch/tile/include/gxio/dma_queue.h | |||
@@ -19,7 +19,7 @@ | |||
19 | * DMA queue management APIs shared between TRIO and mPIPE. | 19 | * DMA queue management APIs shared between TRIO and mPIPE. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include "common.h" | 22 | #include <gxio/common.h> |
23 | 23 | ||
24 | /* The credit counter lives in the high 32 bits. */ | 24 | /* The credit counter lives in the high 32 bits. */ |
25 | #define DMA_QUEUE_CREDIT_SHIFT 32 | 25 | #define DMA_QUEUE_CREDIT_SHIFT 32 |
diff --git a/arch/tile/include/gxio/mpipe.h b/arch/tile/include/gxio/mpipe.h index 78c598618c97..b74f470ed11e 100644 --- a/arch/tile/include/gxio/mpipe.h +++ b/arch/tile/include/gxio/mpipe.h | |||
@@ -21,8 +21,8 @@ | |||
21 | * resources. | 21 | * resources. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "common.h" | 24 | #include <gxio/common.h> |
25 | #include "dma_queue.h" | 25 | #include <gxio/dma_queue.h> |
26 | 26 | ||
27 | #include <linux/time.h> | 27 | #include <linux/time.h> |
28 | 28 | ||
diff --git a/arch/tile/include/gxio/trio.h b/arch/tile/include/gxio/trio.h index 77b80cdd46d8..df10a662cc25 100644 --- a/arch/tile/include/gxio/trio.h +++ b/arch/tile/include/gxio/trio.h | |||
@@ -140,8 +140,8 @@ | |||
140 | 140 | ||
141 | #include <linux/types.h> | 141 | #include <linux/types.h> |
142 | 142 | ||
143 | #include "common.h" | 143 | #include <gxio/common.h> |
144 | #include "dma_queue.h" | 144 | #include <gxio/dma_queue.h> |
145 | 145 | ||
146 | #include <arch/trio_constants.h> | 146 | #include <arch/trio_constants.h> |
147 | #include <arch/trio.h> | 147 | #include <arch/trio.h> |
diff --git a/arch/tile/include/gxio/usb_host.h b/arch/tile/include/gxio/usb_host.h index a60a126e4565..5eedec0e988e 100644 --- a/arch/tile/include/gxio/usb_host.h +++ b/arch/tile/include/gxio/usb_host.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #ifndef _GXIO_USB_H_ | 14 | #ifndef _GXIO_USB_H_ |
15 | #define _GXIO_USB_H_ | 15 | #define _GXIO_USB_H_ |
16 | 16 | ||
17 | #include "common.h" | 17 | #include <gxio/common.h> |
18 | 18 | ||
19 | #include <hv/drv_usb_host_intf.h> | 19 | #include <hv/drv_usb_host_intf.h> |
20 | #include <hv/iorpc.h> | 20 | #include <hv/iorpc.h> |
diff --git a/arch/tile/include/hv/iorpc.h b/arch/tile/include/hv/iorpc.h index 89c72a5d9341..ddf1604482b3 100644 --- a/arch/tile/include/hv/iorpc.h +++ b/arch/tile/include/hv/iorpc.h | |||
@@ -248,7 +248,7 @@ | |||
248 | #if defined(__HV__) | 248 | #if defined(__HV__) |
249 | #include <hv/hypervisor.h> | 249 | #include <hv/hypervisor.h> |
250 | #elif defined(__KERNEL__) | 250 | #elif defined(__KERNEL__) |
251 | #include "hypervisor.h" | 251 | #include <hv/hypervisor.h> |
252 | #include <linux/types.h> | 252 | #include <linux/types.h> |
253 | #else | 253 | #else |
254 | #include <stdint.h> | 254 | #include <stdint.h> |
diff --git a/arch/tile/include/uapi/arch/Kbuild b/arch/tile/include/uapi/arch/Kbuild new file mode 100644 index 000000000000..aafaa5aa54d4 --- /dev/null +++ b/arch/tile/include/uapi/arch/Kbuild | |||
@@ -0,0 +1 @@ | |||
# UAPI Header export list | |||
diff --git a/arch/tile/include/uapi/asm/Kbuild b/arch/tile/include/uapi/asm/Kbuild new file mode 100644 index 000000000000..baebb3da1d44 --- /dev/null +++ b/arch/tile/include/uapi/asm/Kbuild | |||
@@ -0,0 +1,3 @@ | |||
1 | # UAPI Header export list | ||
2 | include include/uapi/asm-generic/Kbuild.asm | ||
3 | |||
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index 33c10864d2f7..759822687e8f 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -246,16 +246,13 @@ static void __devinit fixup_read_and_payload_sizes(void) | |||
246 | 246 | ||
247 | /* Scan for the smallest maximum payload size. */ | 247 | /* Scan for the smallest maximum payload size. */ |
248 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 248 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { |
249 | int pcie_caps_offset; | ||
250 | u32 devcap; | 249 | u32 devcap; |
251 | int max_payload; | 250 | int max_payload; |
252 | 251 | ||
253 | pcie_caps_offset = pci_find_capability(dev, PCI_CAP_ID_EXP); | 252 | if (!pci_is_pcie(dev)) |
254 | if (pcie_caps_offset == 0) | ||
255 | continue; | 253 | continue; |
256 | 254 | ||
257 | pci_read_config_dword(dev, pcie_caps_offset + PCI_EXP_DEVCAP, | 255 | pcie_capability_read_dword(dev, PCI_EXP_DEVCAP, &devcap); |
258 | &devcap); | ||
259 | max_payload = devcap & PCI_EXP_DEVCAP_PAYLOAD; | 256 | max_payload = devcap & PCI_EXP_DEVCAP_PAYLOAD; |
260 | if (max_payload < smallest_max_payload) | 257 | if (max_payload < smallest_max_payload) |
261 | smallest_max_payload = max_payload; | 258 | smallest_max_payload = max_payload; |
@@ -263,21 +260,10 @@ static void __devinit fixup_read_and_payload_sizes(void) | |||
263 | 260 | ||
264 | /* Now, set the max_payload_size for all devices to that value. */ | 261 | /* Now, set the max_payload_size for all devices to that value. */ |
265 | new_values = (max_read_size << 12) | (smallest_max_payload << 5); | 262 | new_values = (max_read_size << 12) | (smallest_max_payload << 5); |
266 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 263 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) |
267 | int pcie_caps_offset; | 264 | pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL, |
268 | u16 devctl; | 265 | PCI_EXP_DEVCTL_PAYLOAD | PCI_EXP_DEVCTL_READRQ, |
269 | 266 | new_values); | |
270 | pcie_caps_offset = pci_find_capability(dev, PCI_CAP_ID_EXP); | ||
271 | if (pcie_caps_offset == 0) | ||
272 | continue; | ||
273 | |||
274 | pci_read_config_word(dev, pcie_caps_offset + PCI_EXP_DEVCTL, | ||
275 | &devctl); | ||
276 | devctl &= ~(PCI_EXP_DEVCTL_PAYLOAD | PCI_EXP_DEVCTL_READRQ); | ||
277 | devctl |= new_values; | ||
278 | pci_write_config_word(dev, pcie_caps_offset + PCI_EXP_DEVCTL, | ||
279 | devctl); | ||
280 | } | ||
281 | } | 267 | } |
282 | 268 | ||
283 | 269 | ||
@@ -404,14 +390,6 @@ void pcibios_set_master(struct pci_dev *dev) | |||
404 | } | 390 | } |
405 | 391 | ||
406 | /* | 392 | /* |
407 | * This is called from the generic Linux layer. | ||
408 | */ | ||
409 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
410 | { | ||
411 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
412 | } | ||
413 | |||
414 | /* | ||
415 | * Enable memory and/or address decoding, as appropriate, for the | 393 | * Enable memory and/or address decoding, as appropriate, for the |
416 | * device described by the 'dev' struct. | 394 | * device described by the 'dev' struct. |
417 | * | 395 | * |
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index 0e213e35ffc3..2ba6d052f85d 100644 --- a/arch/tile/kernel/pci_gx.c +++ b/arch/tile/kernel/pci_gx.c | |||
@@ -1034,14 +1034,6 @@ char __devinit *pcibios_setup(char *str) | |||
1034 | } | 1034 | } |
1035 | 1035 | ||
1036 | /* | 1036 | /* |
1037 | * This is called from the generic Linux layer. | ||
1038 | */ | ||
1039 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
1040 | { | ||
1041 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
1042 | } | ||
1043 | |||
1044 | /* | ||
1045 | * Enable memory address decoding, as appropriate, for the | 1037 | * Enable memory address decoding, as appropriate, for the |
1046 | * device described by the 'dev' struct. The I/O decoding | 1038 | * device described by the 'dev' struct. The I/O decoding |
1047 | * is disabled, though the TILE-Gx supports I/O addressing. | 1039 | * is disabled, though the TILE-Gx supports I/O addressing. |