From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937247AbdLSDMq (ORCPT ); Mon, 18 Dec 2017 22:12:46 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:40688 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937164AbdLSDMm (ORCPT ); Mon, 18 Dec 2017 22:12:42 -0500 X-Google-Smtp-Source: ACJfBotHmAgOXuP7ls82/7KuRjeHMpbD10Xb8s/wqQUOJXALJL5NaX2scucdv43GC14JguYipwe7lw== Date: Tue, 19 Dec 2017 08:42:37 +0530 From: Viresh Kumar To: Patrick Bellasi Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Linux PM , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Linux Kernel Mailing List Subject: Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags Message-ID: <20171219031237.GM19815@vireshk-i7> References: <20456740.6R3DDKEUDv@aspire.rjw.lan> <20171218045945.GG19815@vireshk-i7> <20171218115943.GL19815@vireshk-i7> <20171218121453.GH19821@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171218121453.GH19821@e110439-lin> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-12-17, 12:14, Patrick Bellasi wrote: > For example, swithing from: > > - void (*func)(struct update_util_data *data, u64 time, > - unsigned int flags)) > + void (*func)(struct update_util_data *data, u64 time, > + unsigned int flags, bool set)) > > Where the additional boolean is actually used to define which > operation we wanna perform on the flags? The code will eventually have the same complexity or ugliness in both the cases. I would like to start with another flag for now and see if people prefer another parameter. -- viresh