From: Andi Kleen Date: Mon, 15 Oct 2007 15:00:14 +0000 (+0200) Subject: sched: cleanup: refactor common code of sleep_on / wait_for_completion X-Git-Tag: v2.6.24-rc1~1289^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cbbe86dfcfd68ad69916164bdc838d9e09adca8;p=pandora-kernel.git sched: cleanup: refactor common code of sleep_on / wait_for_completion Refactor common code of sleep_on / wait_for_completion These functions were largely cut'n'pasted. This moves the common code into single helpers instead. Advantage is about 1k less code on x86-64 and 91 lines of code removed. It adds one function call to the non timeout version of the functions; i don't expect this to be measurable. Signed-off-by: Andi Kleen Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed