sync: Imported sw_sync from jb_mr1_chocolate