summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorPavel Tatashin <pasha.tatashin@oracle.com>2017-06-12 16:41:47 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-12 15:44:03 -0700
commit4929c83a6ce6584cb64381bf1407c487f67d588a (patch)
tree49e344e89629324a8af3418dca73db02109abc08 /arch/sparc/kernel/vmlinux.lds.S
parent83e8eb99d908da78e6eff7dd141f26626fe01d12 (diff)
downloadlinux-stable-4929c83a6ce6584cb64381bf1407c487f67d588a.tar.gz
linux-stable-4929c83a6ce6584cb64381bf1407c487f67d588a.tar.bz2
linux-stable-4929c83a6ce6584cb64381bf1407c487f67d588a.zip
sparc64: add hot-patched and inlined get_tick()
Add the new get_tick() function that is hot-patched during boot based on processor we are booting on. Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com> Reviewed-by: Steven Sistare <steven.sistare@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/vmlinux.lds.S')
-rw-r--r--arch/sparc/kernel/vmlinux.lds.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S
index 572db686f845..03b3d65d1266 100644
--- a/arch/sparc/kernel/vmlinux.lds.S
+++ b/arch/sparc/kernel/vmlinux.lds.S
@@ -149,6 +149,11 @@ SECTIONS
*(.sun_m7_2insn_patch)
__sun_m7_2insn_patch_end = .;
}
+ .get_tick_patch : {
+ __get_tick_patch = .;
+ *(.get_tick_patch)
+ __get_tick_patch_end = .;
+ }
PERCPU_SECTION(SMP_CACHE_BYTES)
#ifdef CONFIG_JUMP_LABEL