/* Return accounted runtime for the task. In case the task is currently running, return the runtime plus current's pending runtime that have not been accounted yet.  */
unsigned long long task_sched_runtime(struct task_struct *p)
/* Return accounted runtime for the task. In case the task is currently running, return the runtime plus current's pending runtime that have not been accounted yet.  */
unsigned long long task_sched_runtime(struct task_struct *p)
{
	unsigned long flags;
	struct rq *rq;
	u64 ns = 0;
	rq = task_rq_lock(p, &flags);
	ns = p->se.sum_exec_runtime + do_task_delta_exec(p, rq);
	task_rq_unlock(rq, &flags);
	return ns;
}