Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756079AbbGTHkU (ORCPT ); Mon, 20 Jul 2015 03:40:20 -0400 Received: from cassarossa.samfundet.no ([193.35.52.29]:57193 "EHLO cassarossa.samfundet.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754515AbbGTHkS (ORCPT ); Mon, 20 Jul 2015 03:40:18 -0400 Date: Mon, 20 Jul 2015 09:40:09 +0200 From: Hans-Christian Egtvedt To: Viresh Kumar Cc: Thomas Gleixner , Daniel Lezcano , linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Haavard Skinnemoen Subject: Re: [PATCH 03/23] AVR32/time: Migrate to new 'set-state' interface Message-ID: <20150720074009.GB4334@samfundet.no> References: <81008ebf47a9c63ca97c170d209c0c199f7bfb2e.1437044517.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81008ebf47a9c63ca97c170d209c0c199f7bfb2e.1437044517.git.viresh.kumar@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 33 Around Thu 16 Jul 2015 16:56:15 +0530 or thereabout, Viresh Kumar wrote: > Migrate avr32 driver to the new 'set-state' interface provided by > clockevents core, the earlier 'set-mode' interface is marked obsolete > now. > > This also enables us to implement callbacks for new states of clockevent > devices, for example: ONESHOT_STOPPED. > > We want to call cpu_idle_poll_ctrl() in shutdown only if we were in > oneshot or resume state earlier. Create another variable to save this > information and check that in shutdown callback. > > Cc: Haavard Skinnemoen > Cc: Hans-Christian Egtvedt > Signed-off-by: Viresh Kumar Looks sane. Acked-by: Hans-Christian Egtvedt > --- > arch/avr32/kernel/time.c | 65 ++++++++++++++++++++++++------------------------ > 1 file changed, 33 insertions(+), 32 deletions(-) -- BR, HcE -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/