Based on Semaphore kernel and battery friendly kernel