kernel32: Remove cpu.c.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-05-26 14:39:36 +02:00
parent 30428c19c1
commit 1b653e020d
3 changed files with 41 additions and 101 deletions

View File

@ -10,7 +10,6 @@ C_SRCS = \
comm.c \
computername.c \
console.c \
cpu.c \
debugger.c \
editline.c \
environ.c \

View File

@ -1,95 +0,0 @@
/*
* What processor?
*
* Copyright 1995,1997 Morten Welinder
* Copyright 1997-1998 Marcus Meissner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winternl.h"
#include "psapi.h"
#include "ddk/wdm.h"
#include "wine/unicode.h"
#include "kernel_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(reg);
/***********************************************************************
* GetActiveProcessorGroupCount (KERNEL32.@)
*/
WORD WINAPI GetActiveProcessorGroupCount(void)
{
FIXME("semi-stub, always returning 1\n");
return 1;
}
/***********************************************************************
* GetActiveProcessorCount (KERNEL32.@)
*/
DWORD WINAPI GetActiveProcessorCount(WORD group)
{
SYSTEM_INFO si;
DWORD cpus;
GetSystemInfo( &si );
cpus = si.dwNumberOfProcessors;
FIXME("semi-stub, returning %u\n", cpus);
return cpus;
}
/***********************************************************************
* GetMaximumProcessorCount (KERNEL32.@)
*/
DWORD WINAPI GetMaximumProcessorCount(WORD group)
{
SYSTEM_INFO si;
DWORD cpus;
GetSystemInfo( &si );
cpus = si.dwNumberOfProcessors;
FIXME("semi-stub, returning %u\n", cpus);
return cpus;
}
/***********************************************************************
* GetEnabledXStateFeatures (KERNEL32.@)
*/
DWORD64 WINAPI GetEnabledXStateFeatures(void)
{
FIXME("\n");
return 0;
}

View File

@ -53,7 +53,6 @@
#include "kernel_private.h"
#include "psapi.h"
#include "wine/exception.h"
#include "wine/library.h"
#include "wine/server.h"
#include "wine/unicode.h"
#include "wine/asm.h"
@ -702,6 +701,46 @@ HRESULT WINAPI RegisterApplicationRecoveryCallback(APPLICATION_RECOVERY_CALLBACK
return S_OK;
}
/***********************************************************************
* GetActiveProcessorGroupCount (KERNEL32.@)
*/
WORD WINAPI GetActiveProcessorGroupCount(void)
{
FIXME("semi-stub, always returning 1\n");
return 1;
}
/***********************************************************************
* GetActiveProcessorCount (KERNEL32.@)
*/
DWORD WINAPI GetActiveProcessorCount(WORD group)
{
DWORD cpus = system_info.NumberOfProcessors;
FIXME("semi-stub, returning %u\n", cpus);
return cpus;
}
/***********************************************************************
* GetMaximumProcessorCount (KERNEL32.@)
*/
DWORD WINAPI GetMaximumProcessorCount(WORD group)
{
DWORD cpus = system_info.NumberOfProcessors;
FIXME("semi-stub, returning %u\n", cpus);
return cpus;
}
/***********************************************************************
* GetEnabledXStateFeatures (KERNEL32.@)
*/
DWORD64 WINAPI GetEnabledXStateFeatures(void)
{
FIXME("\n");
return 0;
}
/**********************************************************************
* GetNumaNodeProcessorMask (KERNEL32.@)
*/
@ -737,12 +776,9 @@ BOOL WINAPI GetNumaAvailableMemoryNodeEx(USHORT node, PULONGLONG available_bytes
*/
BOOL WINAPI GetNumaProcessorNode(UCHAR processor, PUCHAR node)
{
SYSTEM_INFO si;
TRACE("(%d, %p)\n", processor, node);
GetSystemInfo( &si );
if (processor < si.dwNumberOfProcessors)
if (processor < system_info.NumberOfProcessors)
{
*node = 0;
return TRUE;