smp.c (19f29aebd929c31c5cc901f38a9295617b602c38) smp.c (50596b7559bf226bb35ad55855ee979453ec06a1)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/arch/arm/kernel/smp.c
4 *
5 * Copyright (C) 2002 ARM Limited, All Rights Reserved.
6 */
7#include <linux/module.h>
8#include <linux/delay.h>

--- 395 unchanged lines hidden (view full) ---

404 * This is the secondary CPU boot entry. We're using this CPUs
405 * idle thread stack, but a set of temporary page tables.
406 */
407asmlinkage void secondary_start_kernel(struct task_struct *task)
408{
409 struct mm_struct *mm = &init_mm;
410 unsigned int cpu;
411
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/arch/arm/kernel/smp.c
4 *
5 * Copyright (C) 2002 ARM Limited, All Rights Reserved.
6 */
7#include <linux/module.h>
8#include <linux/delay.h>

--- 395 unchanged lines hidden (view full) ---

404 * This is the secondary CPU boot entry. We're using this CPUs
405 * idle thread stack, but a set of temporary page tables.
406 */
407asmlinkage void secondary_start_kernel(struct task_struct *task)
408{
409 struct mm_struct *mm = &init_mm;
410 unsigned int cpu;
411
412 set_current(task);
413
412 secondary_biglittle_init();
413
414 /*
415 * The identity mapping is uncached (strongly ordered), so
416 * switch away from it before attempting any exclusive accesses.
417 */
418 cpu_switch_mm(mm->pgd, mm);
419 local_flush_bp_all();

--- 442 unchanged lines hidden ---
414 secondary_biglittle_init();
415
416 /*
417 * The identity mapping is uncached (strongly ordered), so
418 * switch away from it before attempting any exclusive accesses.
419 */
420 cpu_switch_mm(mm->pgd, mm);
421 local_flush_bp_all();

--- 442 unchanged lines hidden ---