Module Name:    src
Committed By:   jmcneill
Date:           Sun Oct 18 14:03:20 UTC 2015

Modified Files:
        src/sys/external/bsd/drm2/include/linux: mm.h

Log Message:
add get_num_physpages


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/include/linux/mm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/mm.h
diff -u src/sys/external/bsd/drm2/include/linux/mm.h:1.5 src/sys/external/bsd/drm2/include/linux/mm.h:1.6
--- src/sys/external/bsd/drm2/include/linux/mm.h:1.5	Fri Apr 17 15:02:50 2015
+++ src/sys/external/bsd/drm2/include/linux/mm.h	Sun Oct 18 14:03:20 2015
@@ -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 @@ vm_mmap(struct file *file __unused, unsi
 	return -ENODEV;
 }
 
+static inline unsigned long
+get_num_physpages(void)
+{
+	return uvmexp.npages;
+}
+
 #endif  /* _LINUX_MM_H_ */

Reply via email to