Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1b653e02
Commit
1b653e02
authored
May 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove cpu.c.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
30428c19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
101 deletions
+41
-101
Makefile.in
dlls/kernel32/Makefile.in
+0
-1
cpu.c
dlls/kernel32/cpu.c
+0
-95
process.c
dlls/kernel32/process.c
+41
-5
No files found.
dlls/kernel32/Makefile.in
View file @
1b653e02
...
...
@@ -10,7 +10,6 @@ C_SRCS = \
comm.c
\
computername.c
\
console.c
\
cpu.c
\
debugger.c
\
editline.c
\
environ.c
\
...
...
dlls/kernel32/cpu.c
deleted
100644 → 0
View file @
30428c19
/*
* 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
;
}
dlls/kernel32/process.c
View file @
1b653e02
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment