Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 631D2C433EF for ; Wed, 10 Nov 2021 19:05:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D71E60FC2 for ; Wed, 10 Nov 2021 19:05:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233644AbhKJTIM (ORCPT ); Wed, 10 Nov 2021 14:08:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233588AbhKJTIF (ORCPT ); Wed, 10 Nov 2021 14:08:05 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EAB0C04C316 for ; Wed, 10 Nov 2021 10:59:32 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id e136so8938346ybc.4 for ; Wed, 10 Nov 2021 10:59:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+s8t/SmW0yke2hgKEqX+e1UnUfykD15/MTB1JLZE/ho=; b=oscsvsddiqqJL//la+u+Lyh9iAU7ue3n7AG8q8Qj3x6t1lY4s4vENZZ29s9jbilvxw h5FcehR3DX5MuQQQNOUR0U2/5szJutrxinnTvuUC2yI62tEjbP/LPf56SY4IcvCUVe/d oGElWFhP3mNCRvtc9FerlkGxB9qvzIKDzxkcJB+F7ApSfOpRoKvI8G2NAxKDSv8/jvFT kaKzH0cKk7k2z3EiNFoxBaHF/0OsSAL8lzLJtA3Yv3Lcd3X9ZeP7C9FD50w1yriqTofD tHkzo5vS5PoFX93sKa8eULVo4yfaDk4kqoaK6WBDAFetpMd7qPTeTUwAaqjD5wy5c3ti WQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+s8t/SmW0yke2hgKEqX+e1UnUfykD15/MTB1JLZE/ho=; b=Fkcuc9FPV1+GNX5+Mp0WLqwo1sTh7zZ2JLw3wNkw2uKS37+c/TCWt7ccx9wKFIQqd5 4qsRV+I2H2vi0mvPgnO7B4YFe0To0UWDZ2JWWc/Y/nCOL8hR4mODgOTUib7F6Gh5bIpR IBsLqrBCD58ngOR4xrTHoMkhESlDal87y07rPHqyPkhi4ZXn9+KogDLQUBiWynJAkbmV lEUP0f3as+eq1WbFSGC1Nvu4BXU3QFuE1NAhh+eauyzSpWSLbAFc+DoGqUSKkIim4NLc dh9H+0U8Q3GJrTq9td2JRAWCexvDVzRDieaZE411C61M3eaNSOmi6Oqvck8cvsUwu1Cz lzxQ== X-Gm-Message-State: AOAM532RJsNMwTcK007pYDGi/zl4UY54hD9gR6RcOJXqTn7gaUwpMEfl 98lm6CfF6f7RR6UYrUVxRzX2fQyViXxS9Q8ldb3VsA== X-Google-Smtp-Source: ABdhPJxmnvEP+w6/OoB17Stbvzd5qJFt23KE33dhCc4/1lyPSChKTW0OnCZlzYrielo7hRnBxwCIGqHW9CqruRixtq0= X-Received: by 2002:a25:6185:: with SMTP id v127mr1682355ybb.100.1636570771120; Wed, 10 Nov 2021 10:59:31 -0800 (PST) MIME-Version: 1.0 References: <20211018203428.2025792-1-joshdon@google.com> In-Reply-To: From: Josh Don Date: Wed, 10 Nov 2021 10:59:19 -0800 Message-ID: Subject: Re: [PATCH v2] sched/core: forced idle accounting To: Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Joel Fernandes , Vineeth Pillai , Hao Luo , Tao Zhou , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 12:59 AM Peter Zijlstra wrote: > > > Ok, I already changed the patch to include the above, lemme also edit > > sched_core_tick(). > > > Something like so then? > [snip] Thanks Peter! Looks good to me. One thing to note though: now that we don't have the schedstat_enabled() check in __sched_core_account_forceidle(), I'd recommend either adding a "REQUIRES: schedstat enabled" comment to be explicit, or switching to schedstat_add().