Skip to content

Commit f6910b0

Browse files
committed
sys: Remove/update references to the swapper process in various comments
Reviewed by: olce, markj Differential Revision: https://reviews.freebsd.org/D54051
1 parent 431b3b2 commit f6910b0

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

sys/arm/arm/pmap-v6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ SYSCTL_PROC(_vm, OID_AUTO, kvm_free,
21582158
***********************************************/
21592159

21602160
/*
2161-
* Initialize the pmap for the swapper process.
2161+
* Initialize the pmap for proc0.
21622162
*/
21632163
void
21642164
pmap_pinit0(pmap_t pmap)

sys/i386/i386/pmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ pmap_abort_ptp(pmap_t pmap, vm_offset_t va, vm_page_t mpte)
20262026
}
20272027

20282028
/*
2029-
* Initialize the pmap for the swapper process.
2029+
* Initialize the pmap for proc0.
20302030
*/
20312031
static void
20322032
__CONCAT(PMTYPE, pinit0)(pmap_t pmap)

sys/sys/proc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ extern int allproc_gen;
10811081
extern struct sx proctree_lock;
10821082
extern struct mtx ppeers_lock;
10831083
extern struct mtx procid_lock;
1084-
extern struct proc proc0; /* Process slot for swapper. */
1084+
extern struct proc proc0; /* Initial kernel process. */
10851085
extern struct thread0_storage thread0_st; /* Primary thread in proc0. */
10861086
#define thread0 (thread0_st.t0st_thread)
10871087
extern struct vmspace vmspace0; /* VM space for proc0. */

sys/sys/sleepqueue.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@
5454
* be removed from a specified sleep queue using the sleepq_remove()
5555
* function. Note that the sleep queue chain must first be locked via
5656
* sleepq_lock() before calling sleepq_abort(), sleepq_broadcast(), or
57-
* sleepq_signal(). These routines each return a boolean that will be true
58-
* if at least one swapped-out thread was resumed. In that case, the caller
59-
* is responsible for waking up the swapper by calling kick_proc0() after
60-
* releasing the sleep queue chain lock.
57+
* sleepq_signal().
6158
*
6259
* Each thread allocates a sleep queue at thread creation via sleepq_alloc()
6360
* and releases it at thread destruction via sleepq_free(). Note that

sys/vm/vnode_pager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ vnode_pager_putpages(vm_object_t object, vm_page_t *m, int count,
12641264
* Force synchronous operation if we are extremely low on memory
12651265
* to prevent a low-memory deadlock. VOP operations often need to
12661266
* allocate more memory to initiate the I/O ( i.e. do a BMAP
1267-
* operation ). The swapper handles the case by limiting the amount
1267+
* operation ). The swap pager handles the case by limiting the amount
12681268
* of asynchronous I/O, but that sort of solution doesn't scale well
12691269
* for the vnode pager without a lot of work.
12701270
*

0 commit comments

Comments
 (0)