Using bad chips to build energy efficient smartphones