Re: [PATCH -v1] MIPS: fix pfn_valid() for FLATMEM

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

 



On Thu, Oct 08, 2009 at 10:21:12PM +0200, Rafael J. Wysocki wrote:

> > Here, we fix it via checking pfn is in the "System RAM" or not. and
> > Seems pfn_valid() is not called in assembly code, we move it to
> > "!__ASSEMBLY__" to ensure we can simply declare it via "extern int
> > pfn_valid(unsigned long)" without Compiling Error.
> > 
> > (This -v1 version incorporates feedback from Pavel Machek <pavel@xxxxxx>
> >  and Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx>)
> 
> Hmm.  What exactly would be wrong with using register_nosave_region() or
> register_nosave_region_late() like x86 does?

That seems to be more the fix than pfn_valid / PageReserved fiddlery we were
discussing in the other thread.  Thanks!

  Ralf


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux