common: Move some CPU functions out of common.h

These functions belong in cpu_func.h since they do not use driver model.
Move them over. Don't bother adding comments since these functions should
be deleted.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2019-11-14 12:57:32 -07:00 committed by Tom Rini
parent 68a6aa85ec
commit b5981474f1
10 changed files with 9 additions and 20 deletions

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <fsl_ddr_sdram.h>
#include <vsprintf.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/compiler.h>
#include <asm/io.h>
#include <asm/processor.h>

View File

@ -7,6 +7,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/compiler.h>
#include <fsl_ifc.h>
#include <asm/processor.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>

View File

@ -10,6 +10,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <ppc_asm.tmpl>
#include <linux/compiler.h>
#include <asm/processor.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <vsprintf.h>
#include <watchdog.h>
#include <command.h>

View File

@ -10,6 +10,7 @@
#include <config.h>
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <tsec.h>
#include <fm_eth.h>
#include <netdev.h>

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <cpu_func.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <asm/mp.h>

View File

@ -5,6 +5,7 @@
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>
#include <pci.h>
#include <asm/processor.h>

View File

@ -203,26 +203,6 @@ void relocate_code(ulong, gd_t *, ulong) __attribute__ ((noreturn));
ulong get_endaddr (void);
void trap_init (ulong);
/* $(CPU)/cpu.c */
static inline int cpumask_next(int cpu, unsigned int mask)
{
for (cpu++; !((1 << cpu) & mask); cpu++)
;
return cpu;
}
#define for_each_cpu(iter, cpu, num_cpus, mask) \
for (iter = 0, cpu = cpumask_next(-1, mask); \
iter < num_cpus; \
iter++, cpu = cpumask_next(cpu, mask)) \
int cpu_numcores (void);
int cpu_num_dspcores(void);
u32 cpu_mask (void);
u32 cpu_dsp_mask(void);
int is_core_valid (unsigned int);
void s_init(void);
int checkcpu (void);