diff options
author | Vijay Kumar <vijay.ac.kumar@oracle.com> | 2017-10-11 20:50:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-15 06:26:46 +0100 |
commit | 46ad8d2d22c17e2b577adec55ae87161666a3267 (patch) | |
tree | dac0c0d3b741e169a4269c59ee1ef152c8ba9583 /arch/sparc/kernel | |
parent | sparc64: SPARC optimized __fls function (diff) | |
download | linux-46ad8d2d22c17e2b577adec55ae87161666a3267.tar.xz linux-46ad8d2d22c17e2b577adec55ae87161666a3267.zip |
sparc64: Use sparc optimized fls and __fls for T4 and above
For T4 and above, patch fls and __fls functions
at the boot time to use lzcnt instruction.
Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/head_64.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/head_64.S b/arch/sparc/kernel/head_64.S index 4de9fbd1a177..f362ecb9955d 100644 --- a/arch/sparc/kernel/head_64.S +++ b/arch/sparc/kernel/head_64.S @@ -640,6 +640,8 @@ niagara4_patch: nop call niagara4_patch_pageops nop + call niagara4_patch_fls + nop ba,a,pt %xcc, 80f nop |