From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755333AbcASNiV (ORCPT ); Tue, 19 Jan 2016 08:38:21 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43851 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754820AbcASNiK (ORCPT ); Tue, 19 Jan 2016 08:38:10 -0500 Date: Tue, 19 Jan 2016 05:36:53 -0800 From: tip-bot for Alexander Kuleshov Message-ID: Cc: linux-kernel@vger.kernel.org, luto@amacapital.net, peterz@infradead.org, kuleshovmail@gmail.com, torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org, luto@kernel.org, dvlasenk@redhat.com, bp@suse.de, brgerst@gmail.com, tglx@linutronix.de, bp@alien8.de Reply-To: luto@kernel.org, bp@suse.de, dvlasenk@redhat.com, bp@alien8.de, tglx@linutronix.de, brgerst@gmail.com, luto@amacapital.net, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, kuleshovmail@gmail.com, peterz@infradead.org, hpa@zytor.com, mingo@kernel.org In-Reply-To: <1453126394-13717-1-git-send-email-kuleshovmail@gmail.com> References: <1453126394-13717-1-git-send-email-kuleshovmail@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/asm/entry: Remove unused SAVE_ALL/ RESTORE_ALL macros for !CONFIG_x86_64 Git-Commit-ID: 2024315124b43bb8b25a119ec6c614f0647dcc6d 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 Commit-ID: 2024315124b43bb8b25a119ec6c614f0647dcc6d Gitweb: http://git.kernel.org/tip/2024315124b43bb8b25a119ec6c614f0647dcc6d Author: Alexander Kuleshov AuthorDate: Mon, 18 Jan 2016 20:13:14 +0600 Committer: Ingo Molnar CommitDate: Tue, 19 Jan 2016 08:24:03 +0100 x86/asm/entry: Remove unused SAVE_ALL/RESTORE_ALL macros for !CONFIG_x86_64 SAVE_ALL and RESTORE_ALL macros for !CONFIG_X86_64 were introduced in commit: 1a338ac32 commit ('sched, x86: Optimize the preempt_schedule() call') ... and were used in the ___preempt_schedule() and ___preempt_schedule_context() functions from the arch/x86/kernel/preempt.S. But the arch/x86/kernel/preempt.S file was removed in the following commit: 0ad6e3c5 commit ('x86: Speed up ___preempt_schedule*() by using THUNK helpers') The ___preempt_schedule()/___preempt_schedule_context() functions were reimplemeted and do not use SAVE_ALL/RESTORE_ALL anymore. These macros have no users anymore, so we can remove them. Signed-off-by: Alexander Kuleshov Acked-by: Andy Lutomirski Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1453126394-13717-1-git-send-email-kuleshovmail@gmail.com [ Improved the changelog. ] Signed-off-by: Ingo Molnar --- arch/x86/entry/calling.h | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index e32206e..9a9e588 100644 --- a/arch/x86/entry/calling.h +++ b/arch/x86/entry/calling.h @@ -201,37 +201,6 @@ For 32-bit we have the following conventions - kernel is built with .byte 0xf1 .endm -#else /* CONFIG_X86_64 */ - -/* - * For 32bit only simplified versions of SAVE_ALL/RESTORE_ALL. These - * are different from the entry_32.S versions in not changing the segment - * registers. So only suitable for in kernel use, not when transitioning - * from or to user space. The resulting stack frame is not a standard - * pt_regs frame. The main use case is calling C code from assembler - * when all the registers need to be preserved. - */ - - .macro SAVE_ALL - pushl %eax - pushl %ebp - pushl %edi - pushl %esi - pushl %edx - pushl %ecx - pushl %ebx - .endm - - .macro RESTORE_ALL - popl %ebx - popl %ecx - popl %edx - popl %esi - popl %edi - popl %ebp - popl %eax - .endm - #endif /* CONFIG_X86_64 */ /*