sync: Add synchronization framework

not run through checkpatch yet.

Change-Id: I209f9db2824e0313f467f11ab09e5f54f0a4a6b5
Signed-off-by: Erik Gilling <konkers@android.com>

Conflicts:
	drivers/base/Kconfig
	drivers/base/Makefile
	drivers/base/sync.c
	include/linux/sync.h
Config: Add SYNC and SW_SYNC to defconfig

Change-Id: I1a305dce5af90fee332fa120b86669ee1c26f0fd
Add missing export and fix cherry-pick whitespace

Change-Id: I13ed9f53e5f95118935a0bdd4bc2c2eae9580b91