From a491e49bbc5ad7dc096131d721a5448959a84d7a Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 12 Sep 2017 11:15:04 +0900 Subject: [PATCH] syscall.c: fix misleading indent This is a non-fonctional change, brought to attention by newer gcc warnings --- kernel/syscall.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/syscall.c b/kernel/syscall.c index 6d23702c..cdb66260 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -5537,10 +5537,10 @@ SYSCALL_DECLARE(getrusage) list_for_each_entry(child, &proc->threads_list, siblings_list){ while(!child->times_update) cpu_pause(); - tsc_to_ts(child->user_tsc, &ats); - ts_add(&utime, &ats); - tsc_to_ts(child->system_tsc, &ats); - ts_add(&stime, &ats); + tsc_to_ts(child->user_tsc, &ats); + ts_add(&utime, &ats); + tsc_to_ts(child->system_tsc, &ats); + ts_add(&stime, &ats); } mcs_rwlock_reader_unlock_noirq(&proc->threads_lock, &lock); ts_to_tv(&kusage.ru_utime, &utime); @@ -6956,8 +6956,8 @@ SYSCALL_DECLARE(clock_gettime) struct timespec wts; while(!child->times_update) cpu_pause(); - tsc_to_ts(child->user_tsc + child->system_tsc, &wts); - ts_add(&ats, &wts); + tsc_to_ts(child->user_tsc + child->system_tsc, &wts); + ts_add(&ats, &wts); } mcs_rwlock_reader_unlock_noirq(&proc->threads_lock, &lock); return copy_to_user(ts, &ats, sizeof ats);