Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264147AbTEGR1W (ORCPT ); Wed, 7 May 2003 13:27:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264150AbTEGR1V (ORCPT ); Wed, 7 May 2003 13:27:21 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:33036 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id S264147AbTEGR1M (ORCPT ); Wed, 7 May 2003 13:27:12 -0400 Date: Wed, 7 May 2003 10:39:35 -0700 (PDT) From: Linus Torvalds To: mikpe@csd.uu.se cc: Dave Jones , Subject: Re: [PATCH] restore sysenter MSRs at resume In-Reply-To: <16057.16684.101916.709412@gargle.gargle.HOWL> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1449 Lines: 36 On Wed, 7 May 2003 mikpe@csd.uu.se wrote: > > We don't do apm suspend/resume on SMP, so this is no different from the > current situation. I don't know if acpi does it or not. Well, the thing is, if we ever do want to support it (and I suspect we do), we should have the infrastructure ready. It shouldn't be too hard to support SMP suspend in a 2.7.x timeframe, since it from a technology angle looks like simply hot-plug CPU's. Some of the infrastructure for that already exists. But I seriously doubt we want to do CPU hot-plug as a device driver. Having a hook in place for it in the arch directory will make it easyish to add once we integrate all the other hotplug code (which is very unlikely in the 2.6.x timeframe). > I could probably get away with simply having apm.c invoke the C code > in suspend.c, which does restore the SYSENTER MSRs. suspend.c itself > doesn't seem to depend on the SOFTWARE_SUSPEND machinery, but > suspend_asm.S does. > > Does that sound reasonable? Sounds reasonable to me. In fact, it looks like it really already exists as the current "restore_processor_state()" thing. In fact, that one already _does_ call "enable_sep_cpu()", so what's up? Linus - 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/