git: ba682f8b9b58 - main - vm: Remove kernel stack swapping support, part 5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jul 2024 01:49:57 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ba682f8b9b58f6b497a5015ef70b2120b8d96663 commit ba682f8b9b58f6b497a5015ef70b2120b8d96663 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-07-29 01:40:39 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-07-29 01:40:39 +0000 vm: Remove kernel stack swapping support, part 5 - Remove cpu_thread_swapin() and cpu_thread_swapout(). Tested by: pho Reviewed by: alc, imp, kib Differential Revision: https://reviews.freebsd.org/D46116 --- sys/amd64/amd64/vm_machdep.c | 10 ---------- sys/arm/arm/vm_machdep.c | 10 ---------- sys/arm64/arm64/vm_machdep.c | 10 ---------- sys/i386/i386/vm_machdep.c | 10 ---------- sys/powerpc/powerpc/vm_machdep.c | 12 ------------ sys/riscv/riscv/vm_machdep.c | 10 ---------- sys/sys/proc.h | 2 -- 7 files changed, 64 deletions(-) diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index c6b78824d730..f6d52fa4c02b 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -374,16 +374,6 @@ cpu_thread_clean(struct thread *td) } } -void -cpu_thread_swapin(struct thread *td) -{ -} - -void -cpu_thread_swapout(struct thread *td) -{ -} - void cpu_thread_alloc(struct thread *td) { diff --git a/sys/arm/arm/vm_machdep.c b/sys/arm/arm/vm_machdep.c index 1dd01f6700aa..377373388478 100644 --- a/sys/arm/arm/vm_machdep.c +++ b/sys/arm/arm/vm_machdep.c @@ -146,16 +146,6 @@ cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) td2->td_md.md_saved_cspr = PSR_SVC32_MODE; } -void -cpu_thread_swapin(struct thread *td) -{ -} - -void -cpu_thread_swapout(struct thread *td) -{ -} - void cpu_set_syscall_retval(struct thread *td, int error) { diff --git a/sys/arm64/arm64/vm_machdep.c b/sys/arm64/arm64/vm_machdep.c index 457157e34a6f..924628001103 100644 --- a/sys/arm64/arm64/vm_machdep.c +++ b/sys/arm64/arm64/vm_machdep.c @@ -137,16 +137,6 @@ cpu_reset(void) __asm volatile("wfi" ::: "memory"); } -void -cpu_thread_swapin(struct thread *td) -{ -} - -void -cpu_thread_swapout(struct thread *td) -{ -} - void cpu_set_syscall_retval(struct thread *td, int error) { diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 2c2fb9dc9821..0e0cebe98e5f 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -374,16 +374,6 @@ cpu_thread_clean(struct thread *td) } } -void -cpu_thread_swapin(struct thread *td) -{ -} - -void -cpu_thread_swapout(struct thread *td) -{ -} - void cpu_thread_alloc(struct thread *td) { diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 74a61e1b7016..12c64f9e38bf 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -211,18 +211,6 @@ cpu_exit(struct thread *td) * fixed-size KVA. */ -void -cpu_thread_swapin(struct thread *td) -{ - -} - -void -cpu_thread_swapout(struct thread *td) -{ - -} - bool cpu_exec_vmspace_reuse(struct proc *p __unused, vm_map_t map __unused) { diff --git a/sys/riscv/riscv/vm_machdep.c b/sys/riscv/riscv/vm_machdep.c index f6d6f61bdc84..726f95213c91 100644 --- a/sys/riscv/riscv/vm_machdep.c +++ b/sys/riscv/riscv/vm_machdep.c @@ -113,16 +113,6 @@ cpu_reset(void) while(1); } -void -cpu_thread_swapin(struct thread *td) -{ -} - -void -cpu_thread_swapout(struct thread *td) -{ -} - void cpu_set_syscall_retval(struct thread *td, int error) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 167ac275c920..2c8b0dc041c4 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1235,8 +1235,6 @@ void cpu_thread_alloc(struct thread *); void cpu_thread_clean(struct thread *); void cpu_thread_exit(struct thread *); void cpu_thread_free(struct thread *); -void cpu_thread_swapin(struct thread *); -void cpu_thread_swapout(struct thread *); struct thread *thread_alloc(int pages); int thread_check_susp(struct thread *td, bool sleep); void thread_cow_get_proc(struct thread *newtd, struct proc *p);