Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux add get_num_physpages



details:   https://anonhg.NetBSD.org/src/rev/e8b609e2f2fc
branches:  trunk
changeset: 811242:e8b609e2f2fc
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 18 14:03:20 2015 +0000

description:
add get_num_physpages

diffstat:

 sys/external/bsd/drm2/include/linux/mm.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r eb1e91671f00 -r e8b609e2f2fc sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h  Sun Oct 18 09:37:14 2015 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h  Sun Oct 18 14:03:20 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mm.h,v 1.5 2015/04/17 15:02:50 riastradh Exp $ */
+/*     $NetBSD: mm.h,v 1.6 2015/10/18 14:03:20 jmcneill Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -70,4 +70,10 @@
        return -ENODEV;
 }
 
+static inline unsigned long
+get_num_physpages(void)
+{
+       return uvmexp.npages;
+}
+
 #endif  /* _LINUX_MM_H_ */



Home | Main Index | Thread Index | Old Index