Skip to content

Commit 8aeb398

Browse files
authored
Revert "Document some exported Sys CPU stuff (#31204)" (#32808)
Revert "Document some exported Sys CPU stuff (#31204)"
2 parents e891bca + 59ccc77 commit 8aeb398

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

base/sysinfo.jl

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ See Hwloc.jl or CpuId.jl for extended information, including number of physical
6464
"""
6565
CPU_THREADS = 1 # for bootstrap, changed on startup
6666

67-
"""
68-
Sys.CPU_NAME
69-
70-
The name of the host CPU as a string.
71-
"""
72-
CPU_NAME = "" # for bootstrap, changed on startup
73-
7467
"""
7568
Sys.ARCH
7669
@@ -195,15 +188,6 @@ function _cpu_summary(io::IO, cpu::AbstractVector{CPUinfo}, i, j)
195188
println(io)
196189
end
197190

198-
"""
199-
Sys.cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
200-
201-
Print a summary of information about each processor in `cpu` gathered from [`cpu_info](@ref). This is generally:
202-
- Its index in the `cpu` vector
203-
- The CPU model
204-
- The CPU speed
205-
- The amount of time spent in `user`, `nice`, `sys`, `idle`, and `irq` modes
206-
"""
207191
function cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
208192
model = cpu[1].model
209193
first = 1
@@ -216,11 +200,6 @@ function cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
216200
_cpu_summary(io, cpu, first, length(cpu))
217201
end
218202

219-
"""
220-
Sys.cpu_info()
221-
222-
Gather information about all CPUs in the system through a syscall using LibUV.
223-
"""
224203
function cpu_info()
225204
UVcpus = Ref{Ptr{UV_cpu_info_t}}()
226205
count = Ref{Int32}()
@@ -237,7 +216,7 @@ end
237216
"""
238217
Sys.uptime()
239218
240-
Get the current system uptime in seconds.
219+
Gets the current system uptime in seconds.
241220
"""
242221
function uptime()
243222
uptime_ = Ref{Float64}()

doc/src/base/base.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,6 @@ Base.@elapsed
298298
Base.@allocated
299299
Base.EnvDict
300300
Base.ENV
301-
Base.Sys.cpu_summary
302-
Base.Sys.cpu_info
303301
Base.Sys.isunix
304302
Base.Sys.isapple
305303
Base.Sys.islinux

doc/src/base/constants.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Base.DEPOT_PATH
1010
Base.LOAD_PATH
1111
Base.Sys.BINDIR
1212
Base.Sys.CPU_THREADS
13-
Base.Sys.CPU_NAME
1413
Base.Sys.WORD_SIZE
1514
Base.Sys.KERNEL
1615
Base.Sys.ARCH

0 commit comments

Comments
 (0)