From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755712Ab3BOQ6Q (ORCPT ); Fri, 15 Feb 2013 11:58:16 -0500 Received: from mail-ea0-f180.google.com ([209.85.215.180]:37735 "EHLO mail-ea0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753775Ab3BOQ6P (ORCPT ); Fri, 15 Feb 2013 11:58:15 -0500 Date: Fri, 15 Feb 2013 18:00:31 +0100 From: Daniel Vetter To: Jesse Barnes Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-pm@vger.kernel.org Subject: Re: [Intel-gfx] [PATCH] pm: provide stubs for PM VT console switch routines Message-ID: <20130215170030.GE5813@phenom.ffwll.local> Mail-Followup-To: Jesse Barnes , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-pm@vger.kernel.org References: <1360945078-27865-1-git-send-email-jbarnes@virtuousgeek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1360945078-27865-1-git-send-email-jbarnes@virtuousgeek.org> X-Operating-System: Linux phenom 3.7.0-rc4+ 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 On Fri, Feb 15, 2013 at 08:17:58AM -0800, Jesse Barnes wrote: > If PM_SLEEP is disabled, we need stub versions of these functions. > > v2: fix up struct device forward decl. > > Signed-off-by: Jesse Barnes Ok, squashed into the old commit and tested. The trick is to disable HIBERNATE and XEN support (since disabling VT_CONSOLE will also kill fbdev support and so drm). -Daniel > --- > include/linux/pm.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/linux/pm.h b/include/linux/pm.h > index 98310eb..e5da2f3 100644 > --- a/include/linux/pm.h > +++ b/include/linux/pm.h > @@ -36,8 +36,17 @@ extern void (*pm_power_off)(void); > extern void (*pm_power_off_prepare)(void); > > struct device; /* we have a circular dep with device.h */ > +#ifdef CONFIG_VT_CONSOLE_SLEEP > extern void pm_vt_switch_required(struct device *dev, bool required); > extern void pm_vt_switch_unregister(struct device *dev); > +#else > +static inline void pm_vt_switch_required(struct device *dev, bool required) > +{ > +} > +static inline void pm_vt_switch_unregister(struct device *dev) > +{ > +} > +#endif /* CONFIG_VT_CONSOLE_SLEEP */ > > /* > * Device power management > -- > 1.7.9.5 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch