rt_mutex based ww_mutex implementation

From: Sebastian Andrzej Siewior
Date: Fri Feb 27 2015 - 11:57:50 EST


On -RT we use struct rt_mutex instead of struct mutex for a regular "mutex".
And since people use GPUs there, too we needed a port of ww_mutex based
rtmutex. I snipped the implementaton out of -RT tried to fit on mainline
and not breaking too much. It doesn't look that bad now :)
#1 is here to keep the changes in #2 a little smaller.

Not sure if #3 makes sense without #2 but it looks like this has been
forgotten.

Sebastian

--
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/