]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
generic swap(): sched: remove local swap() macro
authorWu Fengguang <fengguang.wu@intel.com>
Thu, 8 Jan 2009 02:09:14 +0000 (18:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 16:31:15 +0000 (08:31 -0800)
Use the new generic implementation.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched_fair.c

index e0c0b4bc3f08e822d976fe2d6c222300a61c6352..8e1352c75557308bf1e892bb260b39e9feffd10f 100644 (file)
@@ -1617,8 +1617,6 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued)
        }
 }
 
-#define swap(a, b) do { typeof(a) tmp = (a); (a) = (b); (b) = tmp; } while (0)
-
 /*
  * Share the fairness runtime between parent and child, thus the
  * total amount of pressure for CPU stays equal - new tasks