From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553Ab1AUWdp (ORCPT ); Fri, 21 Jan 2011 17:33:45 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43099 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752522Ab1AUWdo (ORCPT ); Fri, 21 Jan 2011 17:33:44 -0500 Message-ID: <4D3A08F4.1050706@zytor.com> Date: Fri, 21 Jan 2011 14:30:12 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: matthieu castet CC: Lin Ming , Oliver Neukum , rjw@sisk.pl, Thomas Gleixner , Ingo Molnar , x86@kernel.org, Steven Rostedt , Frederic Weisbecker , Rusty Russell , Andrew Morton , FUJITA Tomonori , Jesse Barnes , Stefano Stabellini , Konrad Rzeszutek Wilk , Denys Vlasenko , Michal Marek , Yinghai Lu , Johannes Weiner , Pekka Enberg , Borislav Petkov , Suresh Siddha , Siarhei Liakh , Xuxian Jiang , Dave Airlie , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] S3 resume on SandyBridge doesn't work with NX protection (5bd5a45) References: <20110119173710.GA1331@suse.de> <20110119230602.6dd34fa3@mat-laptop> <20110120134734.GA7230@suse.de> <1295535954.4d384f524c8f0@imp.free.fr> <20110120155909.GA21782@suse.de> <4D38A697.3040308@free.fr> <4D38A836.5040003@zytor.com> <4D3A05DC.4000208@free.fr> In-Reply-To: <4D3A05DC.4000208@free.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/21/2011 02:17 PM, matthieu castet wrote: > Of course, but for example on x64, using smp trampoline to exit rm wakecode help > to merge code in one place. Yes, and there are numerous cleanups like that that can be done. > Also the start of 32/64 bits trampoline (rm part) is really similar. The main difference is the verify_cpu > check, but can't it be called latter (when we switch to 64 bits ) ? One can *sometimes* do merges like that, but one has to be careful to not make the code more complex instead of less by mistake. Minor code duplication is better than really ugly code. -hpa