[PATCH 06/15] um: kill unused cpu()
Al Viro
viro at zeniv.linux.org.uk
Mon Sep 20 14:32:52 PDT 2021
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
---
arch/um/include/shared/kern_util.h | 1 -
arch/um/kernel/process.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/kern_util.h
index a2cfd42608a0c..fbfff76065c5b 100644
--- a/arch/um/include/shared/kern_util.h
+++ b/arch/um/include/shared/kern_util.h
@@ -53,7 +53,6 @@ extern void do_uml_exitcalls(void);
extern int __cant_sleep(void);
extern int get_current_pid(void);
extern int copy_from_user_proc(void *to, void *from, int size);
-extern int cpu(void);
extern char *uml_strdup(const char *string);
extern unsigned long to_irq_stack(unsigned long *mask_out);
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index a5a430c637ba1..d5079a35e48ae 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -264,11 +264,6 @@ int clear_user_proc(void __user *buf, int size)
return clear_user(buf, size);
}
-int cpu(void)
-{
- return current_thread_info()->cpu;
-}
-
static atomic_t using_sysemu = ATOMIC_INIT(0);
int sysemu_supported;
--
2.11.0
More information about the linux-um
mailing list