Преглед изворни кода

generic swap(): sched: remove local swap() macro

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>
Wu Fengguang пре 16 година
родитељ
комит
df4927bf6c
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      kernel/sched_fair.c

+ 0 - 2
kernel/sched_fair.c

@@ -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
  * Share the fairness runtime between parent and child, thus the
  * total amount of pressure for CPU stays equal - new tasks
  * total amount of pressure for CPU stays equal - new tasks