generic swap(): sched: remove local swap() macro
authorWu Fengguang <[email protected]>
Thu, 8 Jan 2009 02:09:14 +0000 (18:09 -0800)
committerLinus Torvalds <[email protected]>
Thu, 8 Jan 2009 16:31:15 +0000 (08:31 -0800)
Use the new generic implementation.

Signed-off-by: Wu Fengguang <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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