diff options
author | Nicholas Piggin | 2018-05-04 19:19:29 +0200 |
---|---|---|
committer | Michael Ellerman | 2018-06-03 12:40:26 +0200 |
commit | 36d632ea831fd2fa3cb62599a465825f59076f64 (patch) | |
tree | eb42671fef17f2f03c16fd1095d7887311ad33e6 /arch/powerpc/kernel/process.c | |
parent | powerpc/64s: micro-optimise __hard_irq_enable() for mtmsrd L=1 support (diff) | |
download | kernel-qcow2-linux-36d632ea831fd2fa3cb62599a465825f59076f64.tar.gz kernel-qcow2-linux-36d632ea831fd2fa3cb62599a465825f59076f64.tar.xz kernel-qcow2-linux-36d632ea831fd2fa3cb62599a465825f59076f64.zip |
powerpc/64: remove start_tb and accum_tb from thread_struct
These fields are only written to.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 25db000fa5b3..f4e5291584c5 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1188,11 +1188,7 @@ struct task_struct *__switch_to(struct task_struct *prev, */ if (firmware_has_feature(FW_FEATURE_SPLPAR)) { struct cpu_usage *cu = this_cpu_ptr(&cpu_usage_array); - long unsigned start_tb, current_tb; - start_tb = old_thread->start_tb; - cu->current_tb = current_tb = mfspr(SPRN_PURR); - old_thread->accum_tb += (current_tb - start_tb); - new_thread->start_tb = current_tb; + cu->current_tb = mfspr(SPRN_PURR); } #endif /* CONFIG_PPC64 */ |