lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101020090613.2e969a6f@queued.net>
Date:	Wed, 20 Oct 2010 09:06:13 -0700
From:	Andres Salomon <dilinger@...ued.net>
To:	Daniel Drake <dsd@...top.org>
Cc:	tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
	x86@...nel.org, linux-kernel@...r.kernel.org, bp@...en8.de,
	randy.dunlap@...cle.com
Subject: Re: [PATCH v2] OLPC: Add XO-1 suspend/resume support

On Wed, 20 Oct 2010 16:17:23 +0100 (BST)
Daniel Drake <dsd@...top.org> wrote:

> Add code needed for basic suspend/resume of the XO-1 laptop.
> 
> Signed-off-by: Daniel Drake <dsd@...top.org>
> ---
>  arch/x86/Kconfig                  |    2 +-
>  arch/x86/include/asm/olpc.h       |    5 +-
>  arch/x86/kernel/Makefile          |    2 +-
>  arch/x86/kernel/olpc-xo1-wakeup.S |  133
> +++++++++++++++++++++++++++++++++++++
> arch/x86/kernel/olpc-xo1.c        |   79 ++++++++++++++++++++++ 5
> files changed, 218 insertions(+), 3 deletions(-) create mode 100644
> arch/x86/kernel/olpc-xo1-wakeup.S
> 
> v2: add dependency on CONFIG_PM_SLEEP (thanks Randy), avoid
> requirement on hacking swsusp_pg_dir by switching to
> initial_page_table Depends on the following patch:
> x86-32, mm: Add an initial page table for core bootstrapping
> 
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 6a81891..581abc7 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -2036,7 +2036,7 @@ config OLPC
>  
>  config OLPC_XO1
>  	tristate "OLPC XO-1 support"
> -	depends on OLPC && PCI
> +	depends on OLPC && PCI && PM_SLEEP
>  	---help---


My suggestion would be:

config OLPC_XO1_PM
	bool
	depends on OLPC && PCI && PM_SLEEP
	default y


No help necessary; just silently turn it on if PM_SLEEP is enabled, but
don't make all OLPC support dependent upon PM_SLEEP.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ