Re: [PATCH 15/20] Move swsusp __pa() dependent code to arch portion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi!

> > > +int pfn_is_nosave(unsigned long pfn)
> > > +{
> > > +	unsigned long nosave_begin_pfn = __pa_symbol(&__nosave_begin) >> PAGE_SHIFT;
> > > +	unsigned long nosave_end_pfn = PAGE_ALIGN(__pa_symbol(&__nosave_end)) >> PAGE_SHIFT;
> > > +	return (pfn >= nosave_begin_pfn) && (pfn < nosave_end_pfn);
> > > +}
> > 
> > ...in asm-generic/suspend.h (or something) and then just include it?
> > 									Pavel
> 
> As code is not exactly same, we can't put it in asm-generic/suspend.h.

Ok... ACK on the original patch, then.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
fastboot mailing list
fastboot@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/fastboot


[Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Linux Media]     [Linux Resources]

Powered by Linux