Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660AbbFKQN7 (ORCPT ); Thu, 11 Jun 2015 12:13:59 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34285 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbbFKQN6 (ORCPT ); Thu, 11 Jun 2015 12:13:58 -0400 Message-ID: <5579B3C7.5030305@linaro.org> Date: Thu, 11 Jun 2015 18:13:59 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Viresh Kumar CC: Thomas Gleixner , linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Warren , Lee Jones Subject: Re: [PATCH 3/6] clocksource: bcm2835: Migrate to new 'set-state' interface References: <5579A864.5010500@linaro.org> <20150611160048.GC4386@linux> In-Reply-To: <20150611160048.GC4386@linux> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 32 On 06/11/2015 06:00 PM, Viresh Kumar wrote: > On 11-06-15, 17:25, Daniel Lezcano wrote: >> Please mention in the log you removed the RESUME because it does >> nothing and the core code will just ignore it. > > Okay. > >> The patch is ok but there is an inconsistency on how are handled the >> different callbacks. tick_resume can be omitted but not >> state_shutdown and state_oneshot forcing the drivers to define empty >> functions. > > It was done because they are thought to be compulsory, but even I > am not sure if we should make all callbacks as optional. Yes, I think it would make sense to ignore NULL callback in __clockevents_set_state, otherwise we will end up to fill the different drivers with duplicated noop functions. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- 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/