diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-08-25 03:59:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-25 03:59:19 -0400 |
commit | 8d58b66ed2b000f27658c88a4ed70e8042e86a58 (patch) | |
tree | 5bae2c74f932b5d863f72cb698a6f71260340b26 /arch/sh/include/asm | |
parent | 13fe86f465b72fc9328d4f5ebc33223c011852ae (diff) | |
parent | c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b (diff) |
Merge tag 'v4.2-rc8' into x86/mm, before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/Kbuild | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/barrier.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/cmpxchg.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/hugetlb.h | 12 | ||||
-rw-r--r-- | arch/sh/include/asm/pci.h | 18 |
5 files changed, 2 insertions, 34 deletions
diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 654ebb6bd5d8..aac452b26aa8 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild | |||
@@ -16,6 +16,7 @@ generic-y += kvm_para.h | |||
16 | generic-y += local.h | 16 | generic-y += local.h |
17 | generic-y += local64.h | 17 | generic-y += local64.h |
18 | generic-y += mcs_spinlock.h | 18 | generic-y += mcs_spinlock.h |
19 | generic-y += mm-arch-hooks.h | ||
19 | generic-y += mman.h | 20 | generic-y += mman.h |
20 | generic-y += msgbuf.h | 21 | generic-y += msgbuf.h |
21 | generic-y += param.h | 22 | generic-y += param.h |
@@ -24,7 +25,6 @@ generic-y += percpu.h | |||
24 | generic-y += poll.h | 25 | generic-y += poll.h |
25 | generic-y += preempt.h | 26 | generic-y += preempt.h |
26 | generic-y += resource.h | 27 | generic-y += resource.h |
27 | generic-y += scatterlist.h | ||
28 | generic-y += sembuf.h | 28 | generic-y += sembuf.h |
29 | generic-y += serial.h | 29 | generic-y += serial.h |
30 | generic-y += shmbuf.h | 30 | generic-y += shmbuf.h |
diff --git a/arch/sh/include/asm/barrier.h b/arch/sh/include/asm/barrier.h index 43715308b068..bf91037db4e0 100644 --- a/arch/sh/include/asm/barrier.h +++ b/arch/sh/include/asm/barrier.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define ctrl_barrier() __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop") | 32 | #define ctrl_barrier() __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop") |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #define set_mb(var, value) do { (void)xchg(&var, value); } while (0) | 35 | #define smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0) |
36 | 36 | ||
37 | #include <asm-generic/barrier.h> | 37 | #include <asm-generic/barrier.h> |
38 | 38 | ||
diff --git a/arch/sh/include/asm/cmpxchg.h b/arch/sh/include/asm/cmpxchg.h index f6bd1406b897..85c97b188d71 100644 --- a/arch/sh/include/asm/cmpxchg.h +++ b/arch/sh/include/asm/cmpxchg.h | |||
@@ -46,8 +46,6 @@ extern void __xchg_called_with_bad_pointer(void); | |||
46 | * if something tries to do an invalid cmpxchg(). */ | 46 | * if something tries to do an invalid cmpxchg(). */ |
47 | extern void __cmpxchg_called_with_bad_pointer(void); | 47 | extern void __cmpxchg_called_with_bad_pointer(void); |
48 | 48 | ||
49 | #define __HAVE_ARCH_CMPXCHG 1 | ||
50 | |||
51 | static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, | 49 | static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, |
52 | unsigned long new, int size) | 50 | unsigned long new, int size) |
53 | { | 51 | { |
diff --git a/arch/sh/include/asm/hugetlb.h b/arch/sh/include/asm/hugetlb.h index 699255d6d1c6..ef489a56fcce 100644 --- a/arch/sh/include/asm/hugetlb.h +++ b/arch/sh/include/asm/hugetlb.h | |||
@@ -26,9 +26,6 @@ static inline int prepare_hugepage_range(struct file *file, | |||
26 | return 0; | 26 | return 0; |
27 | } | 27 | } |
28 | 28 | ||
29 | static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) { | ||
30 | } | ||
31 | |||
32 | static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, | 29 | static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
33 | unsigned long addr, unsigned long end, | 30 | unsigned long addr, unsigned long end, |
34 | unsigned long floor, | 31 | unsigned long floor, |
@@ -82,15 +79,6 @@ static inline pte_t huge_ptep_get(pte_t *ptep) | |||
82 | return *ptep; | 79 | return *ptep; |
83 | } | 80 | } |
84 | 81 | ||
85 | static inline int arch_prepare_hugepage(struct page *page) | ||
86 | { | ||
87 | return 0; | ||
88 | } | ||
89 | |||
90 | static inline void arch_release_hugepage(struct page *page) | ||
91 | { | ||
92 | } | ||
93 | |||
94 | static inline void arch_clear_hugepage_flags(struct page *page) | 82 | static inline void arch_clear_hugepage_flags(struct page *page) |
95 | { | 83 | { |
96 | clear_bit(PG_dcache_clean, &page->flags); | 84 | clear_bit(PG_dcache_clean, &page->flags); |
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h index 5b4511552998..e343dbd02e41 100644 --- a/arch/sh/include/asm/pci.h +++ b/arch/sh/include/asm/pci.h | |||
@@ -86,24 +86,6 @@ extern void pcibios_set_master(struct pci_dev *dev); | |||
86 | * direct memory write. | 86 | * direct memory write. |
87 | */ | 87 | */ |
88 | #define PCI_DISABLE_MWI | 88 | #define PCI_DISABLE_MWI |
89 | |||
90 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | ||
91 | enum pci_dma_burst_strategy *strat, | ||
92 | unsigned long *strategy_parameter) | ||
93 | { | ||
94 | unsigned long cacheline_size; | ||
95 | u8 byte; | ||
96 | |||
97 | pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &byte); | ||
98 | |||
99 | if (byte == 0) | ||
100 | cacheline_size = L1_CACHE_BYTES; | ||
101 | else | ||
102 | cacheline_size = byte << 2; | ||
103 | |||
104 | *strat = PCI_DMA_BURST_MULTIPLE; | ||
105 | *strategy_parameter = cacheline_size; | ||
106 | } | ||
107 | #endif | 89 | #endif |
108 | 90 | ||
109 | /* Board-specific fixup routines. */ | 91 | /* Board-specific fixup routines. */ |