summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-10-29 22:17:12 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-29 22:17:12 -0700
commit0f0a691f1ef9af0f8943f601b325a219d1ba8184 (patch)
tree8db638a361be1b64255cf2b7fc7ced47e52683a6 /arch/sparc
parent4b42745211af552f170f38a1b97f4a112b5da6b2 (diff)
downloadlinux-0f0a691f1ef9af0f8943f601b325a219d1ba8184.tar.gz
linux-0f0a691f1ef9af0f8943f601b325a219d1ba8184.tar.bz2
linux-0f0a691f1ef9af0f8943f601b325a219d1ba8184.zip
sparc64: Remvoe set_fs() from perf_callchain_user().
Ever since commit 88b0193d9418 ("perf/callchain: Force USER_DS when invoking perf_callchain_user()") the caller does this for us. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/kernel/perf_event.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sparc/kernel/perf_event.c b/arch/sparc/kernel/perf_event.c
index 67b3e6b3ce5d..47c871394ccb 100644
--- a/arch/sparc/kernel/perf_event.c
+++ b/arch/sparc/kernel/perf_event.c
@@ -1849,16 +1849,12 @@ perf_callchain_user(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs
{
u64 saved_fault_address = current_thread_info()->fault_address;
u8 saved_fault_code = get_thread_fault_code();
- mm_segment_t old_fs;
perf_callchain_store(entry, regs->tpc);
if (!current->mm)
return;
- old_fs = get_fs();
- set_fs(USER_DS);
-
flushw_user();
pagefault_disable();
@@ -1870,7 +1866,6 @@ perf_callchain_user(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs
pagefault_enable();
- set_fs(old_fs);
set_thread_fault_code(saved_fault_code);
current_thread_info()->fault_address = saved_fault_address;
}