Skip to content

Commit 1dd525f

Browse files
committed
Rename cgroup.cpp to cgroupcpu.cpp
1 parent 31fbec1 commit 1dd525f

4 files changed

Lines changed: 2 additions & 11 deletions

File tree

src/coreclr/nativeaot/Runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ else()
153153
)
154154

155155
list(APPEND FULL_RUNTIME_SOURCES
156-
unix/cgroup.cpp
156+
unix/cgroupcpu.cpp
157157
unix/HardwareExceptions.cpp
158158
unix/UnixContext.cpp
159159
unix/UnixSignals.cpp

src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ void ConfigureSignals()
344344
signal(SIGPIPE, SIG_IGN);
345345
}
346346

347-
extern bool GetCpuLimit(uint32_t* val);
348-
349347
void InitializeCurrentProcessCpuCount()
350348
{
351349
uint32_t count;

src/coreclr/nativeaot/Runtime/unix/cgroup.cpp renamed to src/coreclr/nativeaot/Runtime/unix/cgroupcpu.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,6 @@ void InitializeCpuCGroup()
500500
CGroup::Initialize();
501501
}
502502

503-
void CleanupCpuCGroup()
504-
{
505-
CGroup::Cleanup();
506-
}
507-
508503
bool GetCpuLimit(uint32_t* val)
509504
{
510505
if (val == nullptr)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
54
#ifndef __CGROUPCPU_H__
65
#define __CGROUPCPU_H__
76

87
void InitializeCpuCGroup();
9-
void CleanupCpuCGroup();
8+
bool GetCpuLimit(uint32_t* val);
109

1110
#endif // __CGROUPCPU_H__
12-

0 commit comments

Comments
 (0)