x86, hibernate: Extract the common code of 64/32 bit system
authorZhimin Gu <kookoo.gu@intel.com>
Fri, 21 Sep 2018 06:26:58 +0000 (14:26 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Oct 2018 09:56:33 +0000 (11:56 +0200)
commit25862a049e6f04cc982f4bed25ed3e6f0a0a5a61
tree7ab865a3abbb99450a2ecd40268106d1bb63d016
parent8e5b2a3c5a773f161b57eee7156a63089edd2c5c
x86, hibernate: Extract the common code of 64/32 bit system

Reduce the hibernation code duplication between x86-32 and x86-64
by extracting the common code into hibernate.c.

Currently only pfn_is_nosave() is the activated common
function in hibernate.c

No functional change.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Zhimin Gu <kookoo.gu@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/include/asm/suspend.h
arch/x86/power/Makefile
arch/x86/power/hibernate.c [new file with mode: 0644]
arch/x86/power/hibernate_32.c
arch/x86/power/hibernate_64.c