[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1469166.g4FqVc5SJX@vostro.rjw.lan>
Date: Wed, 08 Oct 2014 01:43:07 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Guenter Roeck <linux@...ck-us.net>
Cc: linux-kernel@...r.kernel.org,
adi-buildroot-devel@...ts.sourceforge.net,
devel@...verdev.osuosl.org, devicetree@...r.kernel.org,
lguest@...ts.ozlabs.org, linux-acpi@...r.kernel.org,
linux-alpha@...r.kernel.org, linux-am33-list@...hat.com,
linux-cris-kernel@...s.com, linux-efi@...r.kernel.org,
linux-hexagon@...r.kernel.org, linux-m32r-ja@...linux-m32r.org,
linuxppc-dev@...ts.ozlabs.org, linux-s390@...r.kernel.org,
linux-tegra@...r.kernel.org, linux-xtensa@...ux-xtensa.org,
openipmi-developer@...ts.sourceforge.net,
user-mode-linux-devel@...ts.sourceforge.net,
linux-arm-kernel@...ts.infradead.org, linux-c6x-dev@...ux-c6x.org,
linux-ia64@...r.kernel.org, linux-m68k@...ts.linux-m68k.org,
linux-metag@...r.kernel.org, linux-mips@...ux-mips.org,
linux-parisc@...r.kernel.org, linux-pm@...r.kernel.org,
linux-sh@...r.kernel.org, xen-devel@...ts.xenproject.org,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>
Subject: Re: [PATCH 44/44] kernel: Remove pm_power_off
On Monday, October 06, 2014 10:28:46 PM Guenter Roeck wrote:
> No users of pm_power_off are left, so it is safe to remove the function.
>
> Cc: Rafael J. Wysocki <rjw@...ysocki.net>
> Cc: Pavel Machek <pavel@....cz>
> Cc: Len Brown <len.brown@...el.com>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
ACK
> ---
> include/linux/pm.h | 1 -
> kernel/power/poweroff_handler.c | 10 +---------
> 2 files changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> index 45271b5..fce7645 100644
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -31,7 +31,6 @@
> /*
> * Callbacks for platform drivers to implement.
> */
> -extern void (*pm_power_off)(void);
> extern void (*pm_power_off_prepare)(void);
>
> /*
> diff --git a/kernel/power/poweroff_handler.c b/kernel/power/poweroff_handler.c
> index 96f59ef..01a3a39 100644
> --- a/kernel/power/poweroff_handler.c
> +++ b/kernel/power/poweroff_handler.c
> @@ -20,12 +20,6 @@
> #include <linux/types.h>
>
> /*
> - * If set, calling this function will power off the system immediately.
> - */
> -void (*pm_power_off)(void);
> -EXPORT_SYMBOL(pm_power_off);
> -
> -/*
> * Notifier list for kernel code which wants to be called
> * to power off the system.
> */
> @@ -163,8 +157,6 @@ int register_poweroff_handler_simple(void (*handler)(void), int priority)
> */
> void do_kernel_poweroff(void)
> {
> - if (pm_power_off)
> - pm_power_off();
> atomic_notifier_call_chain(&poweroff_handler_list, 0, NULL);
> }
>
> @@ -175,6 +167,6 @@ void do_kernel_poweroff(void)
> */
> bool have_kernel_poweroff(void)
> {
> - return pm_power_off != NULL || poweroff_handler_list.head != NULL;
> + return poweroff_handler_list.head != NULL;
> }
> EXPORT_SYMBOL(have_kernel_poweroff);
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
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