ARC: Optimize writes and reads of registers [Patch 4/N]

Clean up code, insert keep_alive() calls.

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>