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

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

 



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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux