/* Note that the thread group might have other running tasks as well, so the return value not includes other pending runtime that other running tasks might have.  */
unsigned long long thread_group_sched_runtime(struct task_struct *p)
/* Note that the thread group might have other running tasks as well, so the return value not includes other pending runtime that other running tasks might have.  */
unsigned long long thread_group_sched_runtime(struct task_struct *p)
{
	struct task_cputime totals;
	unsigned long flags;
	struct rq *rq;
	u64 ns;
	rq = task_rq_lock(p, &flags);
	thread_group_cputime(p, &totals);
	ns = totals.sum_exec_runtime + do_task_delta_exec(p, rq);
	task_rq_unlock(rq, &flags);
	return ns;
}