summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/setup_64.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-08-19 17:50:40 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-01-03 20:10:54 -0500
commitd17b9ec777d86c590a77a404565be5d6005f2fe2 (patch)
tree263a32a58b9690baa08cffad7839c3c87a5eb9c3 /arch/sparc/kernel/setup_64.c
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
downloadlinux-d17b9ec777d86c590a77a404565be5d6005f2fe2.tar.gz
linux-d17b9ec777d86c590a77a404565be5d6005f2fe2.tar.bz2
linux-d17b9ec777d86c590a77a404565be5d6005f2fe2.zip
sparc64: get rid of fake_swapper_regs
no reason to have ->kregs of initial thread set up in a special way - we can keep them on stack, same as for every other thread. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel/setup_64.c')
-rw-r--r--arch/sparc/kernel/setup_64.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c
index d87244197d5c..48abee4eee29 100644
--- a/arch/sparc/kernel/setup_64.c
+++ b/arch/sparc/kernel/setup_64.c
@@ -165,8 +165,6 @@ extern int root_mountflags;
char reboot_command[COMMAND_LINE_SIZE];
-static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 };
-
static void __init per_cpu_patch(void)
{
struct cpuid_patch_entry *p;
@@ -661,8 +659,6 @@ void __init setup_arch(char **cmdline_p)
rd_image_start = ram_flags & RAMDISK_IMAGE_START_MASK;
#endif
- task_thread_info(&init_task)->kregs = &fake_swapper_regs;
-
#ifdef CONFIG_IP_PNP
if (!ic_set_manually) {
phandle chosen = prom_finddevice("/chosen");