> if (!task_cputime_zero(&tsk->cputime_expires)) { >+ struct task_cputime task_sample; >+ cputime_t utime, stime; >+ >+ task_cputime(tsk, &utime, &stime); >+ task_sample.utime = utime; >+ task_sample.stime = stime; >+ task_sample.sum_exec_runtime = tsk->se.sum_exec_runtime;
Er, task_sample.[us]time are already the correct types. Whay are the local variables necessary? How about: if (!task_cputime_zero(&tsk->cputime_expires)) { + struct task_cputime task_sample; + + task_cputime(tsk, &task_simple.utime, &task_simple.stime); + task_sample.sum_exec_runtime = tsk->se.sum_exec_runtime; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/