From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbcD2Iwm (ORCPT ); Fri, 29 Apr 2016 04:52:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48034 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbcD2Iwj (ORCPT ); Fri, 29 Apr 2016 04:52:39 -0400 Date: Fri, 29 Apr 2016 10:52:33 +0200 From: Peter Zijlstra To: David Carrillo-Cisneros Cc: Alexander Shishkin , Arnaldo Carvalho de Melo , Ingo Molnar , Vikas Shivappa , Matt Fleming , Tony Luck , Stephane Eranian , Paul Turner , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 25/32] sched: introduce the finish_arch_pre_lock_switch() scheduler hook Message-ID: <20160429085233.GV3408@twins.programming.kicks-ass.net> References: <1461905018-86355-1-git-send-email-davidcc@google.com> <1461905018-86355-26-git-send-email-davidcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461905018-86355-26-git-send-email-davidcc@google.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 28, 2016 at 09:43:31PM -0700, David Carrillo-Cisneros wrote: > This hook allows architecture specific code to be called at the end of > the task switch and after perf_events' context switch but before the > scheduler lock is released. > > The specific use case in this series is to avoid multiple writes to a slow > MSR until all functions which modify such register in task switch have > finished. Yeah, no. This really need way more justification. Why can't you use the regular perf sched-in stuff for CQM?