Received: by 10.223.176.5 with SMTP id f5csp595999wra; Fri, 9 Feb 2018 04:12:40 -0800 (PST) X-Google-Smtp-Source: AH8x227PvAJYMieqNSmCl01kKkY0dbpIIOudI5ib+ZS8nmnoMtTHOdCToHcU8bdWaSDKCvIMYMGl X-Received: by 10.98.192.11 with SMTP id x11mr2715015pff.27.1518178359970; Fri, 09 Feb 2018 04:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518178359; cv=none; d=google.com; s=arc-20160816; b=GxgdWkYxqQnxfOjWmi2qstgzbNf3wlX/PfLOQgc9B41xadKjvV2JH3xHFtBirNZyTx PbOJae5YffYL0aFQvUZUpzylHw15Z0vKdAXRLxZqkPkiMi6DRdznLNspSPYdoSzG4dcx skx6/tED2iIFoCl3QKcxDVI98YrGCpgY+uGQ7eQ3vOlokWa7vrxPp7mDQpwBOEpZfc4w apbvfqyZqZjooZcAEG2Xg/09hctMnLALZKTDzKdCLwa14rzO/FW9zmBaSR8Fv86CfsMo CF1FkdtZ+tLpkFmStCdbY4K34zxZPMEVLnUziCuMhUzLlgWC2leMXS9Y9g6lF19dmm+T yPFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=R8uZrV4MibZ8CvsaPQ2S8owLWiDyo7ZcMY+jRZlI9g4=; b=AMOOZtHajQnDzRz32SAsTEcWOYiqzFof85XLXv9YMsMds6G3tI7Vc8vxd8vO5+7xn1 Fik5Pns7wVuESQ2/JM1O5Z7GJ3K+k0stPMwoUp4uOaDgRw958ynBmW0w8gDPzDKq2ScW d82KiXcpjVOSxBEXqCsXqb2LoOOs6uf84MIU8j0GX07AAc+upj5U6dVZDKFpjelbFROm xMVXnnQc+W9zAuAGhIipNChxWtBWYUNXemdQQON2Bl8w3vShNSyxge0LFlKUfjP1Ljk2 AibaqgvnLYty853e8m/SLFYcwHinNBQyU1HbcuFIt5xdlmSYijfyeqDmNlM+F06ipbn6 6EEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c129si1624536pfa.362.2018.02.09.04.12.26; Fri, 09 Feb 2018 04:12:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbeBIMKi (ORCPT + 99 others); Fri, 9 Feb 2018 07:10:38 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52228 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750997AbeBIMKc (ORCPT ); Fri, 9 Feb 2018 07:10:32 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EE7A848959; Fri, 9 Feb 2018 12:10:31 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-8-18.pek2.redhat.com [10.72.8.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44D272026DFD; Fri, 9 Feb 2018 12:10:26 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org, ebiederm@xmission.com Cc: mingo@kernel.org, tglx@linutronix.de, x86@kernel.org, douly.fnst@cn.fujitsu.com, joro@8bytes.org, uobergfe@redhat.com, prarit@redhat.com, Baoquan He Subject: [PATCH v3 3/5] x86/apic: Remove useless disable_IO_APIC Date: Fri, 9 Feb 2018 20:10:06 +0800 Message-Id: <20180209121008.28980-4-bhe@redhat.com> In-Reply-To: <20180209121008.28980-1-bhe@redhat.com> References: <20180209121008.28980-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Feb 2018 12:10:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 09 Feb 2018 12:10:32 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No one uses it anymore. Signed-off-by: Baoquan He --- arch/x86/include/asm/io_apic.h | 1 - arch/x86/kernel/apic/io_apic.c | 13 ------------- arch/x86/kernel/machine_kexec_32.c | 5 ++--- arch/x86/kernel/machine_kexec_64.c | 5 ++--- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h index 0fa95bfacb39..5e389145d808 100644 --- a/arch/x86/include/asm/io_apic.h +++ b/arch/x86/include/asm/io_apic.h @@ -192,7 +192,6 @@ static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) extern void setup_IO_APIC(void); extern void enable_IO_APIC(void); -extern void disable_IO_APIC(void); extern void clear_IO_APIC(void); extern void restore_boot_irq_mode(void); extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin); diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 2d7cd2db77f5..9d86b10c2121 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -1438,19 +1438,6 @@ void native_disable_io_apic(void) disconnect_bsp_APIC(ioapic_i8259.pin != -1); } -/* - * Not an __init, needed by the reboot code - */ -void disable_IO_APIC(void) -{ - /* - * Clear the IO-APIC before rebooting: - */ - clear_IO_APIC(); - - restore_boot_irq_mode(); -} - void restore_boot_irq_mode(void) { if (!nr_legacy_irqs()) diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c index f78bb4432bfb..3172f22c1fc1 100644 --- a/arch/x86/kernel/machine_kexec_32.c +++ b/arch/x86/kernel/machine_kexec_32.c @@ -195,9 +195,8 @@ void machine_kexec(struct kimage *image) /* * We need to put APICs in legacy mode so that we can * get timer interrupts in second kernel. kexec/kdump - * paths already have calls to disable_IO_APIC() in - * one form or other. kexec jump path also need - * one. + * paths already have calls to restore_boot_irq_mode() + * in one form or other. kexec jump path also need one. */ restore_boot_irq_mode(); #endif diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index cb0c2d0a4c99..61a87e97aac6 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86/kernel/machine_kexec_64.c @@ -293,9 +293,8 @@ void machine_kexec(struct kimage *image) /* * We need to put APICs in legacy mode so that we can * get timer interrupts in second kernel. kexec/kdump - * paths already have calls to disable_IO_APIC() in - * one form or other. kexec jump path also need - * one. + * paths already have calls to restore_boot_irq_mode() + * in one form or other. kexec jump path also need one. */ restore_boot_irq_mode(); #endif -- 2.13.6