BACKPORT: ARM: 7472/1: pull all work_pending logics into C function

(cherry pick from commit 0a267fa6a15d41c4061358bf2e67c633fdbffc90)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Bug: 9674955
Bug: 25773781
Change-Id: I053923d7f226463cc18df85571f00de4762a198a
2 files changed