Re: [PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-09-01 Thread Yu Chen
On Thu, Aug 30, 2018 at 02:59:09PM +0200, Thomas Gleixner wrote: > On Mon, 27 Aug 2018, Gu Zhimin wrote: > > diff --git a/arch/x86/power/hibernate.c b/arch/x86/power/hibernate.c > > new file mode 100644 > > index 000..6f91f7b > > --- /dev/null > > +++ b/arch/x86/power/hibernate.c > > @@ -0,0 +1

Re: [PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-08-30 Thread Thomas Gleixner
On Mon, 27 Aug 2018, Gu Zhimin wrote: > diff --git a/arch/x86/power/hibernate.c b/arch/x86/power/hibernate.c > new file mode 100644 > index 000..6f91f7b > --- /dev/null > +++ b/arch/x86/power/hibernate.c > @@ -0,0 +1,255 @@ > +/* > + * Hibernation support for x86 > + * > + * Distribute under GP

Re: [PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-08-27 Thread Pavel Machek
On Mon 2018-08-27 17:42:19, Gu Zhimin wrote: > From: Zhimin Gu > > Reduce the hibernation code duplication between x86-32 and x86-64 > by extracting the common code into hibernate.c. > > No functional change. > > Suggested-by: Pavel Machek > Acked-by: Chen Yu > Signed-off-by: Zhimin Gu Than

[PATCH 2/3] x86, hibernate: Extract the common code of 64/32 bit system

2018-08-27 Thread Gu Zhimin
From: Zhimin Gu Reduce the hibernation code duplication between x86-32 and x86-64 by extracting the common code into hibernate.c. No functional change. Suggested-by: Pavel Machek Acked-by: Chen Yu Signed-off-by: Zhimin Gu --- arch/x86/power/hibernate.c| 255 +