Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751726AbbEZXdp (ORCPT ); Tue, 26 May 2015 19:33:45 -0400 Received: from mga01.intel.com ([192.55.52.88]:9794 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbbEZXdn (ORCPT ); Tue, 26 May 2015 19:33:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,502,1427785200"; d="scan'208";a="716015885" From: Andi Kleen To: P5A5Aeter Zijlstra Cc: mingo@kernel.org, vincent.weaver@maine.edu, eranian@google.com, jolsa@redhat.com, kan.liang@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 02/11] perf/x86: Improve HT workaround GP counter constraint References: <20150522132905.416122812@infradead.org> <20150522133135.447912500@infradead.org> Date: Tue, 26 May 2015 16:33:42 -0700 In-Reply-To: <20150522133135.447912500@infradead.org> (Peter Zijlstra's message of "Fri, 22 May 2015 15:29:07 +0200") Message-ID: <87h9qy29t5.fsf@tassilo.jf.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 529 Lines: 16 Peter Zijlstra writes: > + */ > + if (is_ht_workaround_enabled() && !cpuc->is_fake && Could this function also check if at least one leaking event is scheduled somewhere? (e.g. from a global count) -Andi -- ak@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/