• V
    [PATCH] x86: Move swsusp __pa() dependent code to arch portion · 49c3df6a
    Vivek Goyal 提交于
    o __pa() should be used only on kernel linearly mapped virtual addresses
      and not on kernel text and data addresses.
    
    o Hibernation code needs to determine the physical address associated
      with kernel symbol to mark a section boundary which contains pages which
      don't have to be saved and restored during hibernate/resume operation.
    
    o Move this piece of code in arch dependent section. So that architectures
      which don't have kernel text/data mapped into kernel linearly mapped
      region can come up with their own ways of determining physical addresses
      associated with a kernel text.
    Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
    Signed-off-by: NAndi Kleen <ak@suse.de>
    49c3df6a
power.h 5.8 KB