Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755028Ab1BGVrs (ORCPT ); Mon, 7 Feb 2011 16:47:48 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:36296 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929Ab1BGVrr (ORCPT ); Mon, 7 Feb 2011 16:47:47 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=rFz9wScWSDmp+vH3tujBCpAcJmS7rTIAs1H2s8OP354evGH03kUhjNO2IUm0SwVhdq SmV2wR2XgBdMT6Oivylv0PatlOjZoQ+KYG+sgBb85ImYNot16v07H5+Z5d3qXMSx2p97 BEZNZvGAbFx8+mDFNNdEY9pP5WAX9AUAu2i1s= Date: Mon, 7 Feb 2011 13:47:33 -0800 From: Dmitry Torokhov To: "Rafael J. Wysocki" Cc: Mark Brown , Len Brown , Alan Stern , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-embedded@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH] PM: Hide CONFIG_PM from users Message-ID: <20110207214732.GA24703@core.coreip.homeip.net> References: <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> <201102072046.48763.rjw@sisk.pl> <20110207201803.GU10564@opensource.wolfsonmicro.com> <201102072215.59921.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201102072215.59921.rjw@sisk.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 27 On Mon, Feb 07, 2011 at 10:15:59PM +0100, Rafael J. Wysocki wrote: > On Monday, February 07, 2011, Mark Brown wrote: > > > > Yeah, but some people seem very keen on removing the pointers to the PM > > ops entirely when CONFIG_PM is disabled which means that you end up with > > varying idioms for what you do with the PM ops as stuff gets ifdefed > > out. Then again I'm not sure anything would make those people any > > happier. > > I really think we should do things that makes sense rather that worry about > who's going to like or dislike it (except for Linus maybe, but he tends to like > things that make sense anyway). At this point I think the change I suggested > makes sense, because it (a) simplifies things and (b) follows the quite common > practice which is to make PM callbacks depend on CONFIG_PM. Many people make these callback dependent on PM not because it makes much sense but because it is possible to do so. However, aside of randconfig compile testing, nobody really tests drivers that implement PM in the !CONFIG_PM setting. -- Dmitry -- 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/