Optimized ARM RWSEM algorithm
RWSEM implementation for ARM using atomic functions.
Heavily based on arch/sh/include/asm/rwsem.h

Signed-off-by: Ashwin Chaugule <ashwinc@codeaurora.org>
Signed-off-by: Vaibhav Bhasin <bhasinvaibhav97@gmail.com>
Merge branch 'cm-11.0' of https://github.com/v-superuser/android_kernel_htc_a5 into cm-11.0