lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 4/8] x86 PAT: hooks in generic vm code to help archs to track pfnmap regions
    On Wed, 12 Nov 2008 13:26:51 -0800
    Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> wrote:

    > --- tip.orig/mm/memory.c 2008-11-11 10:10:11.000000000 -0800
    > +++ tip/mm/memory.c 2008-11-11 12:10:18.000000000 -0800
    > @@ -99,6 +99,28 @@ int randomize_va_space __read_mostly =
    > 2;
    > #endif
    >
    > +#ifndef track_pfn_vma_new
    > +int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot,
    > + unsigned long pfn, unsigned long size)
    > +{
    > + return 0;
    > +}
    > +#endif
    > +
    > +#ifndef track_pfn_vma_copy
    > +int track_pfn_vma_copy(struct vm_area_struct *vma)
    > +{
    > + return 0;
    > +}
    > +#endif
    > +
    > +#ifndef untrack_pfn_vma
    > +void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn,
    > + unsigned long size)
    > +{
    > +}
    > +#endif

    Using __weak would provide a somewhat neater result here.


    \
     
     \ /
      Last update: 2008-12-16 21:01    [W:0.022 / U:0.100 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site