Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752424AbbFGRic (ORCPT ); Sun, 7 Jun 2015 13:38:32 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57196 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751048AbbFGRiZ (ORCPT ); Sun, 7 Jun 2015 13:38:25 -0400 Date: Sun, 7 Jun 2015 10:38:09 -0700 From: tip-bot for Aravind Gopalakrishnan Message-ID: Cc: bp@suse.de, hpa@zytor.com, mingo@kernel.org, x86@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Aravind.Gopalakrishnan@amd.com, tony.luck@intel.com Reply-To: x86@kernel.org, hpa@zytor.com, mingo@kernel.org, bp@suse.de, Aravind.Gopalakrishnan@amd.com, linux-edac@vger.kernel.org, tony.luck@intel.com, tglx@linutronix.de, linux-kernel@vger.kernel.org In-Reply-To: <1430913538-1415-7-git-send-email-Aravind.Gopalakrishnan@amd.com> References: <1430913538-1415-7-git-send-email-Aravind.Gopalakrishnan@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/core] x86/mce/amd: Rename setup_APIC_mce Git-Commit-ID: 868c00bb5980653c44d931384baa2c7f1bde81ef X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2102 Lines: 52 Commit-ID: 868c00bb5980653c44d931384baa2c7f1bde81ef Gitweb: http://git.kernel.org/tip/868c00bb5980653c44d931384baa2c7f1bde81ef Author: Aravind Gopalakrishnan AuthorDate: Wed, 6 May 2015 06:58:58 -0500 Committer: Borislav Petkov CommitDate: Thu, 7 May 2015 10:33:40 +0200 x86/mce/amd: Rename setup_APIC_mce 'setup_APIC_mce' doesn't give us an indication of why we are going to program LVT. Make that explicit by renaming it to setup_APIC_mce_threshold so we know. No functional change is introduced. Signed-off-by: Aravind Gopalakrishnan Cc: Tony Luck Cc: x86-ml Cc: linux-edac Link: http://lkml.kernel.org/r/1430913538-1415-7-git-send-email-Aravind.Gopalakrishnan@amd.com Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce_amd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c index 2e7ebe7..70e1bf6 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c @@ -213,7 +213,7 @@ static void mce_threshold_block_init(struct threshold_block *b, int offset) threshold_restart_bank(&tr); }; -static int setup_APIC_mce(int reserved, int new) +static int setup_APIC_mce_threshold(int reserved, int new) { if (reserved < 0 && !setup_APIC_eilvt(new, THRESHOLD_APIC_VECTOR, APIC_EILVT_MSG_FIX, 0)) @@ -302,7 +302,7 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c) b.interrupt_enable = 1; new = (high & MASK_LVTOFF_HI) >> 20; - offset = setup_APIC_mce(offset, new); + offset = setup_APIC_mce_threshold(offset, new); if ((offset == new) && (mce_threshold_vector != amd_threshold_interrupt)) -- 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/