diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:33:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:39 -0500 |
commit | 6c435456dc91ace468b4e9d72ad0e13dafa22a45 (patch) | |
tree | febb56da4b1acb6dfae230290ce5638d3fbcaaab /include | |
parent | a89780f3b84f9a421e2608580b55f12b3ac4f9c2 (diff) |
x86: add mm parameter to paravirt_alloc_pd
Add mm to paravirt_alloc_pd, partly to make it consistent with
paravirt_alloc_pt, and because later changes will make use of it.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/paravirt.h | 6 | ||||
-rw-r--r-- | include/asm-x86/pgalloc_32.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index 9f9ff57b3efb..d6236eb46466 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -221,7 +221,7 @@ struct pv_mmu_ops { | |||
221 | 221 | ||
222 | /* Hooks for allocating/releasing pagetable pages */ | 222 | /* Hooks for allocating/releasing pagetable pages */ |
223 | void (*alloc_pt)(struct mm_struct *mm, u32 pfn); | 223 | void (*alloc_pt)(struct mm_struct *mm, u32 pfn); |
224 | void (*alloc_pd)(u32 pfn); | 224 | void (*alloc_pd)(struct mm_struct *mm, u32 pfn); |
225 | void (*alloc_pd_clone)(u32 pfn, u32 clonepfn, u32 start, u32 count); | 225 | void (*alloc_pd_clone)(u32 pfn, u32 clonepfn, u32 start, u32 count); |
226 | void (*release_pt)(u32 pfn); | 226 | void (*release_pt)(u32 pfn); |
227 | void (*release_pd)(u32 pfn); | 227 | void (*release_pd)(u32 pfn); |
@@ -903,9 +903,9 @@ static inline void paravirt_release_pt(unsigned pfn) | |||
903 | PVOP_VCALL1(pv_mmu_ops.release_pt, pfn); | 903 | PVOP_VCALL1(pv_mmu_ops.release_pt, pfn); |
904 | } | 904 | } |
905 | 905 | ||
906 | static inline void paravirt_alloc_pd(unsigned pfn) | 906 | static inline void paravirt_alloc_pd(struct mm_struct *mm, unsigned pfn) |
907 | { | 907 | { |
908 | PVOP_VCALL1(pv_mmu_ops.alloc_pd, pfn); | 908 | PVOP_VCALL2(pv_mmu_ops.alloc_pd, mm, pfn); |
909 | } | 909 | } |
910 | 910 | ||
911 | static inline void paravirt_alloc_pd_clone(unsigned pfn, unsigned clonepfn, | 911 | static inline void paravirt_alloc_pd_clone(unsigned pfn, unsigned clonepfn, |
diff --git a/include/asm-x86/pgalloc_32.h b/include/asm-x86/pgalloc_32.h index f2fc33ceb9f2..fbc6357f5eba 100644 --- a/include/asm-x86/pgalloc_32.h +++ b/include/asm-x86/pgalloc_32.h | |||
@@ -8,8 +8,7 @@ | |||
8 | #include <asm/paravirt.h> | 8 | #include <asm/paravirt.h> |
9 | #else | 9 | #else |
10 | #define paravirt_alloc_pt(mm, pfn) do { } while (0) | 10 | #define paravirt_alloc_pt(mm, pfn) do { } while (0) |
11 | #define paravirt_alloc_pd(pfn) do { } while (0) | 11 | #define paravirt_alloc_pd(mm, pfn) do { } while (0) |
12 | #define paravirt_alloc_pd(pfn) do { } while (0) | ||
13 | #define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0) | 12 | #define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0) |
14 | #define paravirt_release_pt(pfn) do { } while (0) | 13 | #define paravirt_release_pt(pfn) do { } while (0) |
15 | #define paravirt_release_pd(pfn) do { } while (0) | 14 | #define paravirt_release_pd(pfn) do { } while (0) |