K 10 svn:author V 8 bwidawsk K 8 svn:date V 27 2018-11-20T22:49:19.211848Z K 7 svn:log V 662 linuxkpi: Add some basic swap functions These are used by kms-drm to determine various heuristics relate memory conditions. The number of free swap pages is just a variable, and it can be much cheaper by either adding a new getter, or simply extern'ing swap_total. However, this patch opts to use the more expensive, existing interface - since this isn't an operation in a high per path. This allows us to remove some more gpl linuxkpi and do the follo kms-drm: git rm linuxkpi/gplv2/include/linux/swap.h Reviewed by: mmacy, Johannes Lundberg Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D18052 END