From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938482AbcIHQKl (ORCPT ); Thu, 8 Sep 2016 12:10:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44976 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932882AbcIHQKj (ORCPT ); Thu, 8 Sep 2016 12:10:39 -0400 Date: Thu, 8 Sep 2016 18:07:50 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: "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 , linux-kernel , x86 Subject: Re: [PATCH v2 25/33] include/linux/resctrl.h: Define fork and exit functions in a new header file In-Reply-To: <1473328647-33116-26-git-send-email-fenghua.yu@intel.com> Message-ID: References: <1473328647-33116-1-git-send-email-fenghua.yu@intel.com> <1473328647-33116-26-git-send-email-fenghua.yu@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Sep 2016, Fenghua Yu wrote: > From: Fenghua Yu > > A new header file is created in include/linux/resctrl.h. It contains No comment. You should be able to guess what I'm trying not to say. > 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 > >