arm: add rwsem algorithm implementation [ezekeel]