Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758022AbaDWT13 (ORCPT ); Wed, 23 Apr 2014 15:27:29 -0400 Received: from mail-ig0-f171.google.com ([209.85.213.171]:60017 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbaDWT1Z (ORCPT ); Wed, 23 Apr 2014 15:27:25 -0400 MIME-Version: 1.0 In-Reply-To: <20140423190015.GF25378@pd.tnic> References: <20140423170418.GA12767@quad> <20140423190015.GF25378@pd.tnic> Date: Wed, 23 Apr 2014 12:27:24 -0700 Message-ID: Subject: Re: [PATCH] perf/x86: fix RAPL rdmsrl_safe() usage From: Venkatesh Srinivas To: Borislav Petkov Cc: Stephane Eranian , Linux Kernel Developers List , Peter Zijlstra , mingo@elte.hu, Andi Kleen , zheng.z.yan@intel.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 23, 2014 at 12:00 PM, Borislav Petkov wrote: > On Wed, Apr 23, 2014 at 07:04:19PM +0200, Stephane Eranian wrote: >> >> This patch fixes a bug introduced by commit 24223657. > > Maybe add > > Fixes: > > tag? > >> The rdmsrl_safe() function returns 0 on success. >> The current code was failing to detect the RAPL PMU >> on real hardware (missing /sys/devices/power) because >> the return value of rdmsrl_safe() was misinterpreted. >> >> Signed-off-by: Stephane Eranian > > Acked-by: Borislav Petkov Brown-Paper-Bag-Worn-By: Venkatesh Srinivas -- vs; -- 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/