From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933236AbcIHG6b (ORCPT ); Thu, 8 Sep 2016 02:58:31 -0400 Received: from mga05.intel.com ([192.55.52.43]:41891 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932940AbcIHG6Z (ORCPT ); Thu, 8 Sep 2016 02:58:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,298,1470726000"; d="scan'208";a="1052967060" From: "Fenghua Yu" To: "Thomas Gleixner" , "H. Peter Anvin" , "Ingo Molnar" , "Tony Luck" , "Peter Zijlstra" , "Tejun Heo" , "Borislav Petkov" , "Stephane Eranian" , "Marcelo Tosatti" , "David Carrillo-Cisneros" , "Shaohua Li" , "Ravi V Shankar" , "Vikas Shivappa" , "Sai Prakhya" Cc: "linux-kernel" , "x86" , Fenghua Yu Subject: [PATCH v2 23/33] x86/intel_rdt_rdtgroup.c: User interface for RDT Date: Thu, 8 Sep 2016 02:57:17 -0700 Message-Id: <1473328647-33116-24-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1473328647-33116-1-git-send-email-fenghua.yu@intel.com> References: <1473328647-33116-1-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fenghua Yu We introduce a new resctrl file system mounted under /sys/fs/resctrl. User uses this file system to control resource allocation. Hiearchy of the file system is as follows: /sys/fs/resctrl/info/info // // .... /tasks /cpus /schemata /sub-dir1 /sub-dir2 .... User can specify which task uses which schemata for resource allocation. More details can be found in Documentation/x86/intel_rdt_ui.txt Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- arch/x86/include/asm/intel_rdt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h index 85beecc..aaed4b4 100644 --- a/arch/x86/include/asm/intel_rdt.h +++ b/arch/x86/include/asm/intel_rdt.h @@ -40,6 +40,8 @@ struct cache_domain { unsigned int shared_cache_id[MAX_CACHE_DOMAINS]; }; +extern struct cache_domain cache_domains[MAX_CACHE_LEAVES]; + extern struct rdt_opts rdt_opts; struct clos_cbm_table { -- 2.5.0