blob: bcfa129060fd473745ad192eed7b7fee8f995e33 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
2 * Copyright 2009-2010 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _ASM_MP_H_
8#define _ASM_MP_H_
9
10#include <lmb.h>
11
12void setup_mp(void);
13void cpu_mp_lmb_reserve(struct lmb *lmb);
14u32 determine_mp_bootpg(unsigned int *pagesize);
15int is_core_disabled(int nr);
16
17#ifdef CONFIG_E6500
18#define thread_to_core(x) (x >> 1)
19#else
20#define thread_to_core(x) (x)
21#endif
22
23#endif