Optimus G support and xb squash

Add linaro and CAF optimization and other commits from my xb branch