platsmp.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | platsmp.c (b1cffebf1029c87e1f1984d48463ee21093a6bc7) |
---|---|
1/* 2 * Copyright 2010-2011 Calxeda, Inc. 3 * Copyright 2012 Pavel Machek <pavel@denx.de> 4 * Based on platsmp.c, Copyright (C) 2002 ARM Ltd. 5 * Copyright (C) 2012 Altera Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms and conditions of the GNU General Public License, --- 69 unchanged lines hidden (view full) --- 78 if (ncores > num_possible_cpus()) { 79 pr_warn("socfpga: no. of cores (%d) greater than configured" 80 "maximum of %d - clipping\n", ncores, num_possible_cpus()); 81 ncores = num_possible_cpus(); 82 } 83 84 for (i = 0; i < ncores; i++) 85 set_cpu_possible(i, true); | 1/* 2 * Copyright 2010-2011 Calxeda, Inc. 3 * Copyright 2012 Pavel Machek <pavel@denx.de> 4 * Based on platsmp.c, Copyright (C) 2002 ARM Ltd. 5 * Copyright (C) 2012 Altera Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms and conditions of the GNU General Public License, --- 69 unchanged lines hidden (view full) --- 78 if (ncores > num_possible_cpus()) { 79 pr_warn("socfpga: no. of cores (%d) greater than configured" 80 "maximum of %d - clipping\n", ncores, num_possible_cpus()); 81 ncores = num_possible_cpus(); 82 } 83 84 for (i = 0; i < ncores; i++) 85 set_cpu_possible(i, true); |
86 87 set_smp_cross_call(gic_raise_softirq); | |
88} 89 90static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus) 91{ 92 scu_enable(socfpga_scu_base_addr); 93} 94 95/* --- 21 unchanged lines hidden --- | 86} 87 88static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus) 89{ 90 scu_enable(socfpga_scu_base_addr); 91} 92 93/* --- 21 unchanged lines hidden --- |