kernel code from cm