Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3557285yba; Tue, 16 Apr 2019 14:00:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/Z6KV57raccYF35pjbG4MP3onxrZC0ozNZajWmF5/E1PU+ilul2lvCaMtQQXbAT6umC6j X-Received: by 2002:a17:902:f094:: with SMTP id go20mr84259016plb.159.1555448428655; Tue, 16 Apr 2019 14:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555448428; cv=none; d=google.com; s=arc-20160816; b=NR2kFaZH8FaIzBdQpW0CH1++w49pGZs+SWP+Flx1jf6O7+f1JDTwrwBscmdF69AnEz MbpHxfYrjPLdQrx8jSMN4vhqb92ZyUuBjPCtILE+yWWM1a6VPbeYe1Ru5782A/KSv99Z eDY2vEUL0ZXRc9PyiFqozVTrks/UMNvRiIeopKp1NUngpwk7UD2HchMJZqXEM/f2z+W1 ST70Fnle6a8yBCwJWSn5Wf/SNoSYDVgFtM9Cq/k0c74XoTe7epKF0QpWAVMs8wO8dcuv 0Dr9ajV/WsjgAHAT4SYPkAkRXG0Q2onoJ9RdgJD9Og9xz6xHCUDBBOySyJCrKJkRunuk DOZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lJ14NnVJGkxm2WIFgxITzQaVRUUkoWzgo4rzlB2szOU=; b=YmWhaKEW6pw7EHh1wz/LLtBOaKU8xg9gF7pAkp82Y2BQob94ltsvyAbhfE3PY/dbGG QtkWVeOyzc0qrprgjeyUQmItvV1F3xVJaSDp8cueypIh/moVao7eY2oYWcvIG8UX8hzt y9lNhgxuptaCn1z2rotroG1g2xSVInvZYzRlR6LKXvSKaLTplyZ4FyUQup/MNGVHR44T DBgV5VpYIREM9XC6YLjx1crhKS6BGtR2uAiOHs/7O5yavcyyXis6442hFlppveTFT296 Gh5hkic+MVi5k/Snq/bJNj/sBpQ0TZiHSFfEIavU0HrBYXU3U/lABSYhQFTZujhqWSge 030g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MQSVghb0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si31237204pfh.15.2019.04.16.14.00.11; Tue, 16 Apr 2019 14:00:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MQSVghb0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728770AbfDPU7f (ORCPT + 99 others); Tue, 16 Apr 2019 16:59:35 -0400 Received: from mail.skyhub.de ([5.9.137.197]:34044 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfDPU7f (ORCPT ); Tue, 16 Apr 2019 16:59:35 -0400 Received: from zn.tnic (p200300EC2F0D69000C2D4197130645E8.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:6900:c2d:4197:1306:45e8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 37E041EC05B8; Tue, 16 Apr 2019 22:59:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1555448374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=lJ14NnVJGkxm2WIFgxITzQaVRUUkoWzgo4rzlB2szOU=; b=MQSVghb0YbFqaTQ3LpGm9cfm0Jvs1/X+kekhUTw9kUkO2o23DC94m51OCE8H2O4gu6n5ll 2UcIpTxs5viEF34Aujx18PBF76NCBGpBRRoOMrNFKvWFM1PJcmLnOYfYLNxhB7I4o0z+Pt 8eZ64m9aLBX/D1BmIhx0ck+ei8McYTg= Date: Tue, 16 Apr 2019 22:59:26 +0200 From: Borislav Petkov To: Xiaochen Shen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, tony.luck@intel.com, fenghua.yu@intel.com, reinette.chatre@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, pei.p.jia@intel.com Subject: Re: [PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values Message-ID: <20190416205926.GO31772@zn.tnic> References: <1554839728-5544-1-git-send-email-xiaochen.shen@intel.com> <20190415113405.GC29317@zn.tnic> <9e99ed5f-d60a-717c-9322-c6f0b8090d6b@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9e99ed5f-d60a-717c-9322-c6f0b8090d6b@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 04:51:18AM +0800, Xiaochen Shen wrote: > In this patch we initialize MBA resource and cache resources in separate > functions rdtgroup_init_cat() and rdtgroup_init_mba(). If > __init_one_rdt_domain() is only called by rdtgroup_init_cat(), how about > using function name "__init_one_rdt_domain_cat()"? I guess but be conservative when adding too many words to a function's name - that might get heavy when reading the code later. For example, there's an argument to not suffix it with "_cat": it is only called by rdtgroup_init_cat() - rdtgroup_init_mba() will not call it - so the path will remain unique anyway... Anyway, something to think about - I personally don't have a strong preference here. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.