Code from little kernel added

- Based on https://android.googlesource.com/kernel/lk branch upstream-master.
  Hash: 71d36e61184b2ce24ce6ec699c16a2d770612f62