diff options
author | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /arch/ia64/include/asm | |
parent | fe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff) | |
parent | f1d6e17f540af37bb1891480143669ba7636c4cf (diff) |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'arch/ia64/include/asm')
-rw-r--r-- | arch/ia64/include/asm/mutex.h | 10 | ||||
-rw-r--r-- | arch/ia64/include/asm/pci.h | 10 | ||||
-rw-r--r-- | arch/ia64/include/asm/pgtable.h | 3 |
3 files changed, 8 insertions, 15 deletions
diff --git a/arch/ia64/include/asm/mutex.h b/arch/ia64/include/asm/mutex.h index bed73a643a56..f41e66d65e31 100644 --- a/arch/ia64/include/asm/mutex.h +++ b/arch/ia64/include/asm/mutex.h | |||
@@ -29,17 +29,15 @@ __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) | |||
29 | * __mutex_fastpath_lock_retval - try to take the lock by moving the count | 29 | * __mutex_fastpath_lock_retval - try to take the lock by moving the count |
30 | * from 1 to a 0 value | 30 | * from 1 to a 0 value |
31 | * @count: pointer of type atomic_t | 31 | * @count: pointer of type atomic_t |
32 | * @fail_fn: function to call if the original value was not 1 | ||
33 | * | 32 | * |
34 | * Change the count from 1 to a value lower than 1, and call <fail_fn> if | 33 | * Change the count from 1 to a value lower than 1. This function returns 0 |
35 | * it wasn't 1 originally. This function returns 0 if the fastpath succeeds, | 34 | * if the fastpath succeeds, or -1 otherwise. |
36 | * or anything the slow path function returns. | ||
37 | */ | 35 | */ |
38 | static inline int | 36 | static inline int |
39 | __mutex_fastpath_lock_retval(atomic_t *count, int (*fail_fn)(atomic_t *)) | 37 | __mutex_fastpath_lock_retval(atomic_t *count) |
40 | { | 38 | { |
41 | if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) | 39 | if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) |
42 | return fail_fn(count); | 40 | return -1; |
43 | return 0; | 41 | return 0; |
44 | } | 42 | } |
45 | 43 | ||
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h index 5e04b591e423..80775f55f03f 100644 --- a/arch/ia64/include/asm/pci.h +++ b/arch/ia64/include/asm/pci.h | |||
@@ -89,9 +89,9 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus, | |||
89 | #define pci_legacy_read platform_pci_legacy_read | 89 | #define pci_legacy_read platform_pci_legacy_read |
90 | #define pci_legacy_write platform_pci_legacy_write | 90 | #define pci_legacy_write platform_pci_legacy_write |
91 | 91 | ||
92 | struct pci_window { | 92 | struct iospace_resource { |
93 | struct resource resource; | 93 | struct list_head list; |
94 | u64 offset; | 94 | struct resource res; |
95 | }; | 95 | }; |
96 | 96 | ||
97 | struct pci_controller { | 97 | struct pci_controller { |
@@ -100,12 +100,10 @@ struct pci_controller { | |||
100 | int segment; | 100 | int segment; |
101 | int node; /* nearest node with memory or -1 for global allocation */ | 101 | int node; /* nearest node with memory or -1 for global allocation */ |
102 | 102 | ||
103 | unsigned int windows; | ||
104 | struct pci_window *window; | ||
105 | |||
106 | void *platform_data; | 103 | void *platform_data; |
107 | }; | 104 | }; |
108 | 105 | ||
106 | |||
109 | #define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata) | 107 | #define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata) |
110 | #define pci_domain_nr(busdev) (PCI_CONTROLLER(busdev)->segment) | 108 | #define pci_domain_nr(busdev) (PCI_CONTROLLER(busdev)->segment) |
111 | 109 | ||
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h index 815810cbbedc..7935115398a6 100644 --- a/arch/ia64/include/asm/pgtable.h +++ b/arch/ia64/include/asm/pgtable.h | |||
@@ -493,9 +493,6 @@ extern void paging_init (void); | |||
493 | #define pte_to_pgoff(pte) ((pte_val(pte) << 1) >> 3) | 493 | #define pte_to_pgoff(pte) ((pte_val(pte) << 1) >> 3) |
494 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 2) | _PAGE_FILE }) | 494 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 2) | _PAGE_FILE }) |
495 | 495 | ||
496 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
497 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
498 | |||
499 | /* | 496 | /* |
500 | * ZERO_PAGE is a global shared page that is always zero: used | 497 | * ZERO_PAGE is a global shared page that is always zero: used |
501 | * for zero-mapped memory areas etc.. | 498 | * for zero-mapped memory areas etc.. |