improve futex on -RT by avoiding the double wake-up

From: Sebastian Andrzej Siewior
Date: Tue Apr 07 2015 - 11:04:12 EST


On -RT we see a double wake up if the waiter has a higher priority than
the process doing the wake up. Patch #1 avoids in the PI wake code, #2 in
the non-PI variant (and only for one waiter).

#3 is a small optimisation for message queues avoid a "cpu_relax()" loop.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/