blob: bc5617ef7128be9bd84b07024c37ea7625ffdc78 [file] [log] [blame]
Graf Yang6b3087c2009-01-07 23:14:39 +08001/*
Robin Getz96f10502009-09-24 14:11:24 +00002 * IPI management based on arch/arm/kernel/smp.c (Copyright 2002 ARM Limited)
Graf Yang6b3087c2009-01-07 23:14:39 +08003 *
Robin Getz96f10502009-09-24 14:11:24 +00004 * Copyright 2007-2009 Analog Devices Inc.
5 * Philippe Gerum <rpm@xenomai.org>
Graf Yang6b3087c2009-01-07 23:14:39 +08006 *
Robin Getz96f10502009-09-24 14:11:24 +00007 * Licensed under the GPL-2.
Graf Yang6b3087c2009-01-07 23:14:39 +08008 */
9
10#include <linux/module.h>
11#include <linux/delay.h>
12#include <linux/init.h>
13#include <linux/spinlock.h>
14#include <linux/sched.h>
15#include <linux/interrupt.h>
16#include <linux/cache.h>
Bob Liud0014be2011-12-12 11:04:05 +080017#include <linux/clockchips.h>
Graf Yang6b3087c2009-01-07 23:14:39 +080018#include <linux/profile.h>
19#include <linux/errno.h>
20#include <linux/mm.h>
21#include <linux/cpu.h>
22#include <linux/smp.h>
Graf Yang9c199b52009-09-21 11:51:31 +000023#include <linux/cpumask.h>
Graf Yang6b3087c2009-01-07 23:14:39 +080024#include <linux/seq_file.h>
25#include <linux/irq.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090026#include <linux/slab.h>
Arun Sharma600634972011-07-26 16:09:06 -070027#include <linux/atomic.h>
Graf Yang6b3087c2009-01-07 23:14:39 +080028#include <asm/cacheflush.h>
Mike Frysinger6327a572011-04-15 03:06:59 -040029#include <asm/irq_handler.h>
Graf Yang6b3087c2009-01-07 23:14:39 +080030#include <asm/mmu_context.h>
31#include <asm/pgtable.h>
32#include <asm/pgalloc.h>
33#include <asm/processor.h>
34#include <asm/ptrace.h>
35#include <asm/cpu.h>
Graf Yang1fa9be72009-05-15 11:01:59 +000036#include <asm/time.h>
Graf Yang6b3087c2009-01-07 23:14:39 +080037#include <linux/err.h>
38
Graf Yang555487b2009-05-06 10:38:07 +000039/*
40 * Anomaly notes:
41 * 05000120 - we always define corelock as 32-bit integer in L2
42 */
Graf Yang6b3087c2009-01-07 23:14:39 +080043struct corelock_slot corelock __attribute__ ((__section__(".l2.bss")));
44
Sonic Zhangc6345ab2010-08-05 07:49:26 +000045#ifdef CONFIG_ICACHE_FLUSH_L1
46unsigned long blackfin_iflush_l1_entry[NR_CPUS];
47#endif
48
Paul Gortmaker13dff622013-06-18 16:56:21 -040049struct blackfin_initial_pda initial_pda_coreb;
Graf Yang6b3087c2009-01-07 23:14:39 +080050
Steven Miao50888462012-07-31 17:28:10 +080051enum ipi_message_type {
Steven Miao150382a2013-07-09 15:39:53 +080052 BFIN_IPI_NONE,
Steven Miao50888462012-07-31 17:28:10 +080053 BFIN_IPI_TIMER,
54 BFIN_IPI_RESCHEDULE,
55 BFIN_IPI_CALL_FUNC,
Steven Miao50888462012-07-31 17:28:10 +080056 BFIN_IPI_CPU_STOP,
57};
Graf Yang6b3087c2009-01-07 23:14:39 +080058
59struct blackfin_flush_data {
60 unsigned long start;
61 unsigned long end;
62};
63
64void *secondary_stack;
65
Graf Yang6b3087c2009-01-07 23:14:39 +080066static struct blackfin_flush_data smp_flush_data;
67
68static DEFINE_SPINLOCK(stop_lock);
69
Yi Li73a40062009-12-17 08:20:32 +000070/* A magic number - stress test shows this is safe for common cases */
71#define BFIN_IPI_MSGQ_LEN 5
72
73/* Simple FIFO buffer, overflow leads to panic */
Steven Miao50888462012-07-31 17:28:10 +080074struct ipi_data {
Steven Miao150382a2013-07-09 15:39:53 +080075 atomic_t count;
76 atomic_t bits;
Graf Yang6b3087c2009-01-07 23:14:39 +080077};
78
Steven Miao50888462012-07-31 17:28:10 +080079static DEFINE_PER_CPU(struct ipi_data, bfin_ipi);
Graf Yang6b3087c2009-01-07 23:14:39 +080080
81static void ipi_cpu_stop(unsigned int cpu)
82{
83 spin_lock(&stop_lock);
84 printk(KERN_CRIT "CPU%u: stopping\n", cpu);
85 dump_stack();
86 spin_unlock(&stop_lock);
87
KOSAKI Motohirofecedc802011-04-26 10:57:27 +090088 set_cpu_online(cpu, false);
Graf Yang6b3087c2009-01-07 23:14:39 +080089
90 local_irq_disable();
91
92 while (1)
93 SSYNC();
94}
95
96static void ipi_flush_icache(void *info)
97{
98 struct blackfin_flush_data *fdata = info;
99
100 /* Invalidate the memory holding the bounds of the flushed region. */
Sonic Zhang8d50de92011-04-12 08:16:04 +0000101 blackfin_dcache_invalidate_range((unsigned long)fdata,
102 (unsigned long)fdata + sizeof(*fdata));
Graf Yang6b3087c2009-01-07 23:14:39 +0800103
Sonic Zhang8d50de92011-04-12 08:16:04 +0000104 /* Make sure all write buffers in the data side of the core
105 * are flushed before trying to invalidate the icache. This
106 * needs to be after the data flush and before the icache
107 * flush so that the SSYNC does the right thing in preventing
108 * the instruction prefetcher from hitting things in cached
109 * memory at the wrong time -- it runs much further ahead than
110 * the pipeline.
111 */
112 SSYNC();
113
114 /* ipi_flaush_icache is invoked by generic flush_icache_range,
115 * so call blackfin arch icache flush directly here.
116 */
117 blackfin_icache_flush_range(fdata->start, fdata->end);
Graf Yang6b3087c2009-01-07 23:14:39 +0800118}
119
Yi Li73a40062009-12-17 08:20:32 +0000120/* Use IRQ_SUPPLE_0 to request reschedule.
121 * When returning from interrupt to user space,
122 * there is chance to reschedule */
123static irqreturn_t ipi_handler_int0(int irq, void *dev_instance)
124{
125 unsigned int cpu = smp_processor_id();
126
127 platform_clear_ipi(cpu, IRQ_SUPPLE_0);
128 return IRQ_HANDLED;
129}
130
Bob Liud0014be2011-12-12 11:04:05 +0800131DECLARE_PER_CPU(struct clock_event_device, coretmr_events);
132void ipi_timer(void)
133{
134 int cpu = smp_processor_id();
135 struct clock_event_device *evt = &per_cpu(coretmr_events, cpu);
136 evt->event_handler(evt);
137}
138
Yi Li73a40062009-12-17 08:20:32 +0000139static irqreturn_t ipi_handler_int1(int irq, void *dev_instance)
Graf Yang6b3087c2009-01-07 23:14:39 +0800140{
Steven Miao50888462012-07-31 17:28:10 +0800141 struct ipi_data *bfin_ipi_data;
Graf Yang6b3087c2009-01-07 23:14:39 +0800142 unsigned int cpu = smp_processor_id();
Steven Miao50888462012-07-31 17:28:10 +0800143 unsigned long pending;
144 unsigned long msg;
Graf Yang6b3087c2009-01-07 23:14:39 +0800145
Yi Li73a40062009-12-17 08:20:32 +0000146 platform_clear_ipi(cpu, IRQ_SUPPLE_1);
Graf Yang6b3087c2009-01-07 23:14:39 +0800147
Steven Miao177a48f2013-11-15 15:41:35 +0800148 smp_rmb();
Christoph Lameter7e788ab2014-08-17 12:30:52 -0500149 bfin_ipi_data = this_cpu_ptr(&bfin_ipi);
Steven Miao16fc5bc2013-07-16 13:25:21 +0800150 while ((pending = atomic_xchg(&bfin_ipi_data->bits, 0)) != 0) {
Steven Miao50888462012-07-31 17:28:10 +0800151 msg = 0;
152 do {
153 msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1);
154 switch (msg) {
155 case BFIN_IPI_TIMER:
156 ipi_timer();
157 break;
158 case BFIN_IPI_RESCHEDULE:
159 scheduler_ipi();
160 break;
161 case BFIN_IPI_CALL_FUNC:
162 generic_smp_call_function_interrupt();
163 break;
Steven Miao50888462012-07-31 17:28:10 +0800164 case BFIN_IPI_CPU_STOP:
165 ipi_cpu_stop(cpu);
166 break;
Steven Miao177a48f2013-11-15 15:41:35 +0800167 default:
168 goto out;
Steven Miao50888462012-07-31 17:28:10 +0800169 }
Steven Miao150382a2013-07-09 15:39:53 +0800170 atomic_dec(&bfin_ipi_data->count);
Steven Miao50888462012-07-31 17:28:10 +0800171 } while (msg < BITS_PER_LONG);
Steven Miao177a48f2013-11-15 15:41:35 +0800172
Graf Yang6b3087c2009-01-07 23:14:39 +0800173 }
Steven Miao177a48f2013-11-15 15:41:35 +0800174out:
Graf Yang6b3087c2009-01-07 23:14:39 +0800175 return IRQ_HANDLED;
176}
177
Steven Miao50888462012-07-31 17:28:10 +0800178static void bfin_ipi_init(void)
Graf Yang6b3087c2009-01-07 23:14:39 +0800179{
180 unsigned int cpu;
Steven Miao50888462012-07-31 17:28:10 +0800181 struct ipi_data *bfin_ipi_data;
Graf Yang6b3087c2009-01-07 23:14:39 +0800182 for_each_possible_cpu(cpu) {
Steven Miao50888462012-07-31 17:28:10 +0800183 bfin_ipi_data = &per_cpu(bfin_ipi, cpu);
Steven Miao16fc5bc2013-07-16 13:25:21 +0800184 atomic_set(&bfin_ipi_data->bits, 0);
185 atomic_set(&bfin_ipi_data->count, 0);
Graf Yang6b3087c2009-01-07 23:14:39 +0800186 }
187}
188
Steven Miao50888462012-07-31 17:28:10 +0800189void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg)
Graf Yang6b3087c2009-01-07 23:14:39 +0800190{
191 unsigned int cpu;
Steven Miao50888462012-07-31 17:28:10 +0800192 struct ipi_data *bfin_ipi_data;
193 unsigned long flags;
Graf Yang6b3087c2009-01-07 23:14:39 +0800194
Steven Miao50888462012-07-31 17:28:10 +0800195 local_irq_save(flags);
Steven Miao50888462012-07-31 17:28:10 +0800196 for_each_cpu(cpu, cpumask) {
197 bfin_ipi_data = &per_cpu(bfin_ipi, cpu);
Peter Zijlstra805de8f42015-04-24 01:12:32 +0200198 atomic_or((1 << msg), &bfin_ipi_data->bits);
Steven Miao150382a2013-07-09 15:39:53 +0800199 atomic_inc(&bfin_ipi_data->count);
Graf Yang6b3087c2009-01-07 23:14:39 +0800200 }
Steven Miao50888462012-07-31 17:28:10 +0800201 local_irq_restore(flags);
Steven Miao177a48f2013-11-15 15:41:35 +0800202 smp_wmb();
203 for_each_cpu(cpu, cpumask)
204 platform_send_ipi_cpu(cpu, IRQ_SUPPLE_1);
Yi Li73a40062009-12-17 08:20:32 +0000205}
206
Steven Miao50888462012-07-31 17:28:10 +0800207void arch_send_call_function_single_ipi(int cpu)
Yi Li73a40062009-12-17 08:20:32 +0000208{
Jiang Liu5e98c092013-12-16 00:36:28 +0800209 send_ipi(cpumask_of(cpu), BFIN_IPI_CALL_FUNC);
Graf Yang6b3087c2009-01-07 23:14:39 +0800210}
Graf Yang6b3087c2009-01-07 23:14:39 +0800211
Steven Miao50888462012-07-31 17:28:10 +0800212void arch_send_call_function_ipi_mask(const struct cpumask *mask)
Graf Yang6b3087c2009-01-07 23:14:39 +0800213{
Steven Miao50888462012-07-31 17:28:10 +0800214 send_ipi(mask, BFIN_IPI_CALL_FUNC);
Graf Yang6b3087c2009-01-07 23:14:39 +0800215}
Graf Yang6b3087c2009-01-07 23:14:39 +0800216
217void smp_send_reschedule(int cpu)
218{
Steven Miao50888462012-07-31 17:28:10 +0800219 send_ipi(cpumask_of(cpu), BFIN_IPI_RESCHEDULE);
Graf Yang6b3087c2009-01-07 23:14:39 +0800220
221 return;
222}
223
Bob Liud0014be2011-12-12 11:04:05 +0800224void smp_send_msg(const struct cpumask *mask, unsigned long type)
225{
Steven Miao50888462012-07-31 17:28:10 +0800226 send_ipi(mask, type);
Bob Liud0014be2011-12-12 11:04:05 +0800227}
228
229void smp_timer_broadcast(const struct cpumask *mask)
230{
231 smp_send_msg(mask, BFIN_IPI_TIMER);
232}
233
Graf Yang6b3087c2009-01-07 23:14:39 +0800234void smp_send_stop(void)
235{
Graf Yang6b3087c2009-01-07 23:14:39 +0800236 cpumask_t callmap;
Graf Yang6b3087c2009-01-07 23:14:39 +0800237
Sonic Zhang567ebfc2010-06-25 05:55:16 +0000238 preempt_disable();
KOSAKI Motohirofecedc802011-04-26 10:57:27 +0900239 cpumask_copy(&callmap, cpu_online_mask);
240 cpumask_clear_cpu(smp_processor_id(), &callmap);
241 if (!cpumask_empty(&callmap))
Steven Miao50888462012-07-31 17:28:10 +0800242 send_ipi(&callmap, BFIN_IPI_CPU_STOP);
Graf Yang6b3087c2009-01-07 23:14:39 +0800243
Sonic Zhang567ebfc2010-06-25 05:55:16 +0000244 preempt_enable();
Graf Yang6b3087c2009-01-07 23:14:39 +0800245
Graf Yang6b3087c2009-01-07 23:14:39 +0800246 return;
247}
248
Paul Gortmaker13dff622013-06-18 16:56:21 -0400249int __cpu_up(unsigned int cpu, struct task_struct *idle)
Graf Yang6b3087c2009-01-07 23:14:39 +0800250{
Graf Yang6b3087c2009-01-07 23:14:39 +0800251 int ret;
Graf Yang0b39db22009-12-28 11:13:51 +0000252
Graf Yang6b3087c2009-01-07 23:14:39 +0800253 secondary_stack = task_stack_page(idle) + THREAD_SIZE;
Graf Yang6b3087c2009-01-07 23:14:39 +0800254
255 ret = platform_boot_secondary(cpu, idle);
256
Graf Yang6b3087c2009-01-07 23:14:39 +0800257 secondary_stack = NULL;
258
259 return ret;
260}
261
Paul Gortmaker13dff622013-06-18 16:56:21 -0400262static void setup_secondary(unsigned int cpu)
Graf Yang6b3087c2009-01-07 23:14:39 +0800263{
Graf Yang6b3087c2009-01-07 23:14:39 +0800264 unsigned long ilat;
265
266 bfin_write_IMASK(0);
267 CSYNC();
268 ilat = bfin_read_ILAT();
269 CSYNC();
270 bfin_write_ILAT(ilat);
271 CSYNC();
272
Graf Yang6b3087c2009-01-07 23:14:39 +0800273 /* Enable interrupt levels IVG7-15. IARs have been already
274 * programmed by the boot CPU. */
Mike Frysinger40059782008-11-18 17:48:22 +0800275 bfin_irq_flags |= IMASK_IVG15 |
Graf Yang6b3087c2009-01-07 23:14:39 +0800276 IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 |
277 IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW;
Graf Yang6b3087c2009-01-07 23:14:39 +0800278}
279
Paul Gortmaker13dff622013-06-18 16:56:21 -0400280void secondary_start_kernel(void)
Graf Yang6b3087c2009-01-07 23:14:39 +0800281{
282 unsigned int cpu = smp_processor_id();
283 struct mm_struct *mm = &init_mm;
284
285 if (_bfin_swrst & SWRST_DBL_FAULT_B) {
286 printk(KERN_EMERG "CoreB Recovering from DOUBLE FAULT event\n");
287#ifdef CONFIG_DEBUG_DOUBLEFAULT
Mike Frysingerfb1d9be2011-05-29 23:12:51 -0400288 printk(KERN_EMERG " While handling exception (EXCAUSE = %#x) at %pF\n",
289 initial_pda_coreb.seqstat_doublefault & SEQSTAT_EXCAUSE,
290 initial_pda_coreb.retx_doublefault);
291 printk(KERN_NOTICE " DCPLB_FAULT_ADDR: %pF\n",
292 initial_pda_coreb.dcplb_doublefault_addr);
293 printk(KERN_NOTICE " ICPLB_FAULT_ADDR: %pF\n",
294 initial_pda_coreb.icplb_doublefault_addr);
Graf Yang6b3087c2009-01-07 23:14:39 +0800295#endif
296 printk(KERN_NOTICE " The instruction at %pF caused a double exception\n",
Mike Frysingerfb1d9be2011-05-29 23:12:51 -0400297 initial_pda_coreb.retx);
Graf Yang6b3087c2009-01-07 23:14:39 +0800298 }
299
300 /*
301 * We want the D-cache to be enabled early, in case the atomic
302 * support code emulates cache coherence (see
303 * __ARCH_SYNC_CORE_DCACHE).
304 */
305 init_exception_vectors();
306
Graf Yang6b3087c2009-01-07 23:14:39 +0800307 local_irq_disable();
308
309 /* Attach the new idle task to the global mm. */
310 atomic_inc(&mm->mm_users);
Vegard Nossumf1f10072017-02-27 14:30:07 -0800311 mmgrab(mm);
Graf Yang6b3087c2009-01-07 23:14:39 +0800312 current->active_mm = mm;
Graf Yang6b3087c2009-01-07 23:14:39 +0800313
314 preempt_disable();
315
316 setup_secondary(cpu);
317
Yi Li578d36f2009-12-02 07:58:12 +0000318 platform_secondary_init(cpu);
Yi Li0d152c22009-12-28 10:21:49 +0000319 /* setup local core timer */
320 bfin_local_timer_setup();
321
Graf Yang6b3087c2009-01-07 23:14:39 +0800322 local_irq_enable();
323
steven miaoab61d2a2010-09-07 10:08:36 +0000324 bfin_setup_caches(cpu);
325
Bob Liud0014be2011-12-12 11:04:05 +0800326 notify_cpu_starting(cpu);
Yi Li578d36f2009-12-02 07:58:12 +0000327 /*
328 * Calibrate loops per jiffy value.
329 * IRQs need to be enabled here - D-cache can be invalidated
330 * in timer irq handler, so core B can read correct jiffies.
331 */
332 calibrate_delay();
Graf Yang6b3087c2009-01-07 23:14:39 +0800333
Steven Miao150382a2013-07-09 15:39:53 +0800334 /* We are done with local CPU inits, unblock the boot CPU. */
335 set_cpu_online(cpu, true);
Thomas Gleixnerfc6d73d2016-02-26 18:43:40 +0000336 cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
Graf Yang6b3087c2009-01-07 23:14:39 +0800337}
338
339void __init smp_prepare_boot_cpu(void)
340{
341}
342
343void __init smp_prepare_cpus(unsigned int max_cpus)
344{
345 platform_prepare_cpus(max_cpus);
Steven Miao50888462012-07-31 17:28:10 +0800346 bfin_ipi_init();
Yi Li73a40062009-12-17 08:20:32 +0000347 platform_request_ipi(IRQ_SUPPLE_0, ipi_handler_int0);
348 platform_request_ipi(IRQ_SUPPLE_1, ipi_handler_int1);
Graf Yang6b3087c2009-01-07 23:14:39 +0800349}
350
351void __init smp_cpus_done(unsigned int max_cpus)
352{
353 unsigned long bogosum = 0;
354 unsigned int cpu;
355
356 for_each_online_cpu(cpu)
Michael Hennerichc70c7542009-07-09 09:58:52 +0000357 bogosum += loops_per_jiffy;
Graf Yang6b3087c2009-01-07 23:14:39 +0800358
359 printk(KERN_INFO "SMP: Total of %d processors activated "
360 "(%lu.%02lu BogoMIPS).\n",
361 num_online_cpus(),
362 bogosum / (500000/HZ),
363 (bogosum / (5000/HZ)) % 100);
364}
365
366void smp_icache_flush_range_others(unsigned long start, unsigned long end)
367{
368 smp_flush_data.start = start;
369 smp_flush_data.end = end;
370
Steven Miaoa2eff9d2011-11-25 14:25:30 +0800371 preempt_disable();
372 if (smp_call_function(&ipi_flush_icache, &smp_flush_data, 1))
Graf Yang6b3087c2009-01-07 23:14:39 +0800373 printk(KERN_WARNING "SMP: failed to run I-cache flush request on other CPUs\n");
Steven Miaoa2eff9d2011-11-25 14:25:30 +0800374 preempt_enable();
Graf Yang6b3087c2009-01-07 23:14:39 +0800375}
376EXPORT_SYMBOL_GPL(smp_icache_flush_range_others);
377
Sonic Zhang47e9ded2009-06-10 08:57:08 +0000378#ifdef __ARCH_SYNC_CORE_ICACHE
Graf Yang718340f2010-02-01 06:07:50 +0000379unsigned long icache_invld_count[NR_CPUS];
Sonic Zhang47e9ded2009-06-10 08:57:08 +0000380void resync_core_icache(void)
381{
382 unsigned int cpu = get_cpu();
383 blackfin_invalidate_entire_icache();
Graf Yang718340f2010-02-01 06:07:50 +0000384 icache_invld_count[cpu]++;
Sonic Zhang47e9ded2009-06-10 08:57:08 +0000385 put_cpu();
386}
387EXPORT_SYMBOL(resync_core_icache);
388#endif
389
Graf Yang6b3087c2009-01-07 23:14:39 +0800390#ifdef __ARCH_SYNC_CORE_DCACHE
Graf Yang718340f2010-02-01 06:07:50 +0000391unsigned long dcache_invld_count[NR_CPUS];
Graf Yang6b3087c2009-01-07 23:14:39 +0800392unsigned long barrier_mask __attribute__ ((__section__(".l2.bss")));
393
394void resync_core_dcache(void)
395{
396 unsigned int cpu = get_cpu();
397 blackfin_invalidate_entire_dcache();
Graf Yang718340f2010-02-01 06:07:50 +0000398 dcache_invld_count[cpu]++;
Graf Yang6b3087c2009-01-07 23:14:39 +0800399 put_cpu();
400}
401EXPORT_SYMBOL(resync_core_dcache);
402#endif
Graf Yang0b39db22009-12-28 11:13:51 +0000403
404#ifdef CONFIG_HOTPLUG_CPU
Paul Gortmaker13dff622013-06-18 16:56:21 -0400405int __cpu_disable(void)
Graf Yang0b39db22009-12-28 11:13:51 +0000406{
407 unsigned int cpu = smp_processor_id();
408
409 if (cpu == 0)
410 return -EPERM;
411
412 set_cpu_online(cpu, false);
413 return 0;
414}
415
Paul Gortmaker13dff622013-06-18 16:56:21 -0400416int __cpu_die(unsigned int cpu)
Graf Yang0b39db22009-12-28 11:13:51 +0000417{
Paul E. McKenneya17b4b72015-02-26 14:28:25 -0800418 return cpu_wait_death(cpu, 5);
Graf Yang0b39db22009-12-28 11:13:51 +0000419}
420
421void cpu_die(void)
422{
Paul E. McKenneya17b4b72015-02-26 14:28:25 -0800423 (void)cpu_report_death();
Graf Yang0b39db22009-12-28 11:13:51 +0000424
425 atomic_dec(&init_mm.mm_users);
426 atomic_dec(&init_mm.mm_count);
427
428 local_irq_disable();
429 platform_cpu_die();
430}
431#endif