ARM: SAMSUNG: Move common save/restore helpers to separate file