From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98FD914EC40 for ; Thu, 11 Apr 2024 14:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844914; cv=none; b=pULCo3MnvDXcLl1P3WGyV96dXhIIhhL1flRtWbHQXRL55piDVGajeRW13/BRAWjzkjsZbfhSRpXNiKuF+5UFCNRMF7nKkRML+VF6+VGqGgss2b/OHB491gmGWDxg7LshdZJsUPIRM13a43JV5SuYD59y9lqxQl44z+1LZnw8e1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844914; c=relaxed/simple; bh=tBwVtxSBMQcM3gTJe/ADrOfHAy0L66S9KG99F9o1+hs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oTqIcmQ4wBry6MXSlC57Nt1hDy8eA4O3ejy2rBJkhmc9LtbMih7oW/+mIojZROi+F2WdHjMRv7L3xc4/8JOzZrnyrbNmEfE2V6+EpKroJBqtI+3fMVWQQtCeE71+LSf4uMIhn9LFzE6seCwDlpCENvK6/Z3y9a6Xs/R8aM/VtnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A628339; Thu, 11 Apr 2024 07:15:42 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3D5AC3F64C; Thu, 11 Apr 2024 07:15:10 -0700 (PDT) Date: Thu, 11 Apr 2024 15:15:07 +0100 From: Dave Martin To: Reinette Chatre Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 07/31] x86/resctrl: Wrap resctrl_arch_find_domain() around rdt_find_domain() Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-8-james.morse@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 08, 2024 at 08:17:12PM -0700, Reinette Chatre wrote: > Hi James, > > On 3/21/2024 9:50 AM, James Morse wrote: > > rdt_find_domain() finds a domain given a resource and a cache-id. > > It's not quite right for the resctrl arch API as it also returns the > > position to insert a new domain, which is needed when bringing a > > domain online in the arch code. > > > > Wrap rdt_find_domain() in a another function resctrl_arch_find_domain() > > "in a another" -> "in another" Noted for James' attention. > > so we avoid the unnecessary argument outside the arch code. > > Please do not impersonate code. [...] > Reinette Noted. Cheers ---Dave