From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757804AbcHCK6c (ORCPT ); Wed, 3 Aug 2016 06:58:32 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:43452 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752463AbcHCK63 (ORCPT ); Wed, 3 Aug 2016 06:58:29 -0400 Date: Wed, 3 Aug 2016 12:34:42 +0200 From: Peter Zijlstra To: Giovanni Gherdovich Cc: Ingo Molnar , Mike Galbraith , Stanislaw Gruszka , linux-kernel@vger.kernel.org, Mel Gorman , mgorman@techsingularity.net Subject: Re: [PATCH] sched/cputime: Mitigate performance regression in times()/clock_gettime() Message-ID: <20160803103442.GC7141@twins.programming.kicks-ass.net> References: <1469542034-9542-1-git-send-email-ggherdovich@suse.cz> <20160802103729.GG6862@twins.programming.kicks-ass.net> <1470175492.1849.3.camel@suse.cz> <20160803100254.GE6879@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160803100254.GE6879@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 03, 2016 at 12:02:54PM +0200, Peter Zijlstra wrote: > /* > * XXX comment on why this is needed goes here... > */ > static inline void prefetch_curr_exec_start(struct task_struct *p) > { > #ifdef CONFIG_FAIR_GROUP_SCHED > struct sched_entity *curr = (&p->se)->cfs_rq->curr; #else struct sched_entity *curr = task_rq(p)->cfs_rq->curr; #endif Would be the 'right' thing for !cgroup stuffs > > prefetch(curr); > prefetch(&curr->exec_start); > }