From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934635AbcIHHAx (ORCPT ); Thu, 8 Sep 2016 03:00:53 -0400 Received: from mga05.intel.com ([192.55.52.43]:22481 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932952AbcIHG60 (ORCPT ); Thu, 8 Sep 2016 02:58:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,298,1470726000"; d="scan'208";a="1052967066" 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 25/33] include/linux/resctrl.h: Define fork and exit functions in a new header file Date: Thu, 8 Sep 2016 02:57:19 -0700 Message-Id: <1473328647-33116-26-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 A new header file is created in include/linux/resctrl.h. It contains defintions of rdtgroup_fork and rdtgroup_exit for x86. The functions are empty for other architectures. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- include/linux/resctrl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/linux/resctrl.h diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h new file mode 100644 index 0000000..68dabc4 --- /dev/null +++ b/include/linux/resctrl.h @@ -0,0 +1,12 @@ +#ifndef _LINUX_RESCTRL_H +#define _LINUX_RESCTRL_H + +#ifdef CONFIG_INTEL_RDT +extern void rdtgroup_fork(struct task_struct *child); +extern void rdtgroup_exit(struct task_struct *tsk); +#else +static inline void rdtgroup_fork(struct task_struct *child) {} +static inline void rdtgroup_exit(struct task_struct *tsk) {} +#endif /* CONFIG_X86 */ + +#endif /* _LINUX_RESCTRL_H */ -- 2.5.0