Kumar Gala | 7649a59 | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 1 | /* |
Kumar Gala | 8f3a7fa | 2010-06-09 22:33:53 -0500 | [diff] [blame] | 2 | * Copyright 2009-2010 Freescale Semiconductor, Inc. |
Kumar Gala | 7649a59 | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Kumar Gala | 7649a59 | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 5 | */ |
6 | |||||
7 | #ifndef _ASM_MP_H_ | ||||
8 | #define _ASM_MP_H_ | ||||
9 | |||||
10 | #include <lmb.h> | ||||
11 | |||||
12 | void setup_mp(void); | ||||
13 | void cpu_mp_lmb_reserve(struct lmb *lmb); | ||||
York Sun | eb53941 | 2012-10-08 07:44:25 +0000 | [diff] [blame] | 14 | u32 determine_mp_bootpg(unsigned int *pagesize); |
Kumar Gala | 8f3a7fa | 2010-06-09 22:33:53 -0500 | [diff] [blame] | 15 | int is_core_disabled(int nr); |
Kumar Gala | 7649a59 | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 16 | |
York Sun | 709389b | 2012-08-17 08:20:26 +0000 | [diff] [blame] | 17 | #ifdef CONFIG_E6500 |
18 | #define thread_to_core(x) (x >> 1) | ||||
19 | #else | ||||
20 | #define thread_to_core(x) (x) | ||||
21 | #endif | ||||
22 | |||||
Kumar Gala | 7649a59 | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 23 | #endif |