[Intel-gfx] [PATCH xf86-video-intel] sna: Use a more portable way to determine total RAM size

Chris Wilson chris at chris-wilson.co.uk
Tue Mar 26 21:20:49 CET 2013


On Tue, Mar 26, 2013 at 08:50:53PM +0100, Mark Kettenis wrote:
> From: Mark Kettenis <kettenis at openbsd.org>
> 
> The sysinfo function is Linux-specific.  sysconf(_SC_PHYS_PAGES), while
> not truly portable, is available on many more systems, including Linux,
> Solaris, NetBSD, FreeBSD and OpenBSD.  So use that instead.  Verified
> that this results in the same value as the sysinfo call on a handful of
> Linux systems.

I bikeshedded slightly, as I could not see a compelling reason to
completely replace the current code - I know it currently works.

Thanks for the patch, pushed.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list