[PATCH 6/8] ntdll: Standardize on sysconf to detect the number of processors for all platforms.
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 04:43:48 CDT 2012
James Eder <jimportal at gmail.com> writes:
> @@ -1010,6 +1010,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
> */
> void fill_cpu_info(void)
> {
> + long num;
> +
> + num = sysconf(_SC_NPROCESSORS_ONLN);
> + if (num < 1)
> + {
> + num = 1;
> + WARN("Failed to detect the number of processors.\n");
> + }
> + NtCurrentTeb()->Peb->NumberOfProcessors = num;
Have you verified that this works correctly on all the platforms you are
changing?
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list