summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/NG4patch.S
diff options
context:
space:
mode:
authorLinus Torvalds2017-11-18 05:21:44 +0100
committerLinus Torvalds2017-11-18 05:21:44 +0100
commit1deab8ce2c91e3b16563b7a7ea150f82334262ec (patch)
tree954b2d9d27df9765b9579b10f87054e1effd6cb3 /arch/sparc/lib/NG4patch.S
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parentsparc64: Fix page table walk for PUD hugepages (diff)
downloadkernel-qcow2-linux-1deab8ce2c91e3b16563b7a7ea150f82334262ec.tar.gz
kernel-qcow2-linux-1deab8ce2c91e3b16563b7a7ea150f82334262ec.tar.xz
kernel-qcow2-linux-1deab8ce2c91e3b16563b7a7ea150f82334262ec.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc updates from David Miller: 1) Add missing cmpxchg64() for 32-bit sparc. 2) Timer conversions from Allen Pais and Kees Cook. 3) vDSO support, from Nagarathnam Muthusamy. 4) Fix sparc64 huge page table walks based upon bug report by Al Viro, from Nitin Gupta. 5) Optimized fls() for T4 and above, from Vijay Kumar. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Fix page table walk for PUD hugepages sparc64: Convert timers to user timer_setup() sparc64: convert mdesc_handle.refcnt from atomic_t to refcount_t sparc/led: Convert timers to use timer_setup() sparc64: Use sparc optimized fls and __fls for T4 and above sparc64: SPARC optimized __fls function sparc64: SPARC optimized fls function sparc64: Define SPARC default __fls function sparc64: Define SPARC default fls function vDSO for sparc sparc32: Add cmpxchg64(). sbus: char: Move D7S_MINOR to include/linux/miscdevice.h sparc: time: Remove unneeded linux/miscdevice.h include sparc64: mmu_context: Add missing include files
Diffstat (limited to 'arch/sparc/lib/NG4patch.S')
-rw-r--r--arch/sparc/lib/NG4patch.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/lib/NG4patch.S b/arch/sparc/lib/NG4patch.S
index aa58ab39f9a6..37866175c921 100644
--- a/arch/sparc/lib/NG4patch.S
+++ b/arch/sparc/lib/NG4patch.S
@@ -4,6 +4,8 @@
* Copyright (C) 2012 David S. Miller <davem@davemloft.net>
*/
+#include <linux/linkage.h>
+
#define BRANCH_ALWAYS 0x10680000
#define NOP 0x01000000
#define NG_DO_PATCH(OLD, NEW) \
@@ -53,3 +55,10 @@ niagara4_patch_pageops:
retl
nop
.size niagara4_patch_pageops,.-niagara4_patch_pageops
+
+ENTRY(niagara4_patch_fls)
+ NG_DO_PATCH(fls, NG4fls)
+ NG_DO_PATCH(__fls, __NG4fls)
+ retl
+ nop
+ENDPROC(niagara4_patch_fls)