From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937264AbdLSDSZ (ORCPT ); Mon, 18 Dec 2017 22:18:25 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:41319 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934967AbdLSDSX (ORCPT ); Mon, 18 Dec 2017 22:18:23 -0500 X-Google-Smtp-Source: ACJfBousYHvNrXtw2hbJLf/9pBxUSV9ie1tpRNJHx2AkPZUlLBv7NUl6pbm9iXvj4bnH0T0pw2I0ugEFVDlY1JxSxJg= MIME-Version: 1.0 In-Reply-To: <20171219031237.GM19815@vireshk-i7> References: <20456740.6R3DDKEUDv@aspire.rjw.lan> <20171218045945.GG19815@vireshk-i7> <20171218115943.GL19815@vireshk-i7> <20171218121453.GH19821@e110439-lin> <20171219031237.GM19815@vireshk-i7> From: Joel Fernandes Date: Mon, 18 Dec 2017 19:18:21 -0800 Message-ID: Subject: Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags To: Viresh Kumar Cc: Patrick Bellasi , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Linux PM , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Viresh, On Mon, Dec 18, 2017 at 7:12 PM, Viresh Kumar wrote: > 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. Though I think that will solve Rafael's concern of polluting the flags for something schedutil specific. I also feel adding extra callback parameter is cleaner than 2 new clear flags. Thanks, - Joel