Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH v4 1/3] task_work_add: generic process-context callbacks | Date | Tue, 17 Apr 2012 14:53:59 +0100 |
| |
Oleg Nesterov <oleg@redhat.com> wrote:
> tsk is always "current", probably this should be documented, I'll add > the comment.
If tsk is always current, then don't pass it as a parameter. Some arches keep current in a register and it's much more efficient to use current directly in those cases - and those that don't have to be able to obtain it reasonably quickly.
David
| |