Implement tickless sleeping

Energy-wise it would be wise to sleep ticklessly.