Clean up patches : remove warnings, move cli() and save_flags to spinlock mechanisms