summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorCon Kolivas <kernel@kolivas.org>2016-10-17 11:06:11 +1100
committerCon Kolivas <kernel@kolivas.org>2016-10-17 11:07:01 +1100
commit3e4e282863344fa3271f6c3c934492dd606d6d80 (patch)
treed571766f7bbf4d55ee70016f626b3834f1f47650 /kernel
parent2ce037a2f25ef96cdde06912f71cf3652abea0c8 (diff)
Remove dup'd vtime_task_switch
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/MuQSS.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c
index 525505f9212b..262c5c0e7074 100644
--- a/kernel/sched/MuQSS.c
+++ b/kernel/sched/MuQSS.c
@@ -7820,21 +7820,7 @@ void vtime_account_system_irqsafe(struct task_struct *tsk)
local_irq_restore(flags);
}
EXPORT_SYMBOL_GPL(vtime_account_system_irqsafe);
-
-#ifndef __ARCH_HAS_VTIME_TASK_SWITCH
-void vtime_task_switch(struct task_struct *prev)
-{
- if (is_idle_task(prev))
- vtime_account_idle(prev);
- else
- vtime_account_system(prev);
-
- vtime_account_user(prev);
- arch_vtime_task_switch(prev);
-}
-#endif
-
-#else
+#else /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
/*
* Perform (stime * rtime) / total, but avoid multiplication overflow by
* losing precision when the numbers are big.
@@ -7956,7 +7942,7 @@ void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime
thread_group_cputime(p, &cputime);
cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st);
}
-#endif
+#endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */
void init_idle_bootup_task(struct task_struct *idle)
{}