mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 01:36:58 -05:00
selftests/rseq: Remove useless assignment to cpu variable
commit 930378d056eac2c96407b02aafe4938d0ac9cc37 upstream. Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
9aa134cb66
commit
7037c511f6
1 changed files with 1 additions and 3 deletions
|
|
@ -366,9 +366,7 @@ void *test_percpu_spinlock_thread(void *arg)
|
|||
abort();
|
||||
reps = thread_data->reps;
|
||||
for (i = 0; i < reps; i++) {
|
||||
int cpu = rseq_cpu_start();
|
||||
|
||||
cpu = rseq_this_cpu_lock(&data->lock);
|
||||
int cpu = rseq_this_cpu_lock(&data->lock);
|
||||
data->c[cpu].count++;
|
||||
rseq_percpu_unlock(&data->lock, cpu);
|
||||
#ifndef BENCHMARK
|
||||
|
|
|
|||
Loading…
Reference in a new issue