sync: factor sw_sync functionality out of header

Change-Id: I13127abe1cd07cd52b35ff43902579478505ccf4
2 files changed