From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbcAMBNV (ORCPT ); Tue, 12 Jan 2016 20:13:21 -0500 Received: from mga11.intel.com ([192.55.52.93]:53369 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752077AbcAMBNR (ORCPT ); Tue, 12 Jan 2016 20:13:17 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,286,1449561600"; d="scan'208";a="859324503" From: Jacob Pan To: LKML , Linux PM , Rafael Wysocki , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , X86 Kernel Cc: Srinivas Pandruvada , Peter Zijlstra , Jacob Pan Subject: [PATCH v2 0/2] Reduce IPI calls for remote msr access Date: Tue, 12 Jan 2016 17:11:21 -0800 Message-Id: <1452647483-14244-1-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IPI calls to access MSRs on remote CPUs are expensive. So add a lib call for read/modify/write access and use it in Intel RAPL driver. Changes since v1: (based on feedback from Thomas Gleixner) - remove duplicated !CONFIG_SMP code - rename variables - added a check for local CPU before searching for active CPU oni the package Jacob Pan (2): x86/msr: add on cpu read/modify/write function powercap/rapl: reduce ipi calls arch/x86/include/asm/msr.h | 13 ++++++++ arch/x86/lib/msr-smp.c | 34 +++++++++++++++++++ arch/x86/lib/msr.c | 18 ++++++++++ drivers/powercap/intel_rapl.c | 77 +++++++++++++++++++++++-------------------- 4 files changed, 107 insertions(+), 35 deletions(-) -- 1.9.1