Merge cpu and lib cache code. Flush cache before disabling. Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>