Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
43636796
Commit
43636796
authored
Jan 10, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Jan 10, 2020
Browse files
Merge "Unify type of "cpu_idx" across PSCI module." into integration
parents
1522958f
5b33ad17
Changes
25
Hide whitespace changes
Inline
Side-by-side
plat/arm/board/rdn1edge/include/platform_def.h
View file @
43636796
...
...
@@ -11,9 +11,9 @@
#include <sgi_base_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT
2
#define CSS_SGI_MAX_CPUS_PER_CLUSTER
4
#define CSS_SGI_MAX_PE_PER_CPU
1
#define PLAT_ARM_CLUSTER_COUNT
U(2)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER
U(4)
#define CSS_SGI_MAX_PE_PER_CPU
U(1)
#define PLAT_CSS_MHU_BASE UL(0x45400000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
...
...
plat/arm/board/sgi575/include/platform_def.h
View file @
43636796
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -11,9 +11,9 @@
#include <sgi_base_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT
2
#define CSS_SGI_MAX_CPUS_PER_CLUSTER
4
#define CSS_SGI_MAX_PE_PER_CPU
1
#define PLAT_ARM_CLUSTER_COUNT
U(2)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER
U(4)
#define CSS_SGI_MAX_PE_PER_CPU
U(1)
#define PLAT_CSS_MHU_BASE UL(0x45000000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
...
...
plat/arm/board/sgm775/include/platform_def.h
View file @
43636796
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -9,8 +9,8 @@
#include <sgm_base_platform_def.h>
#define PLAT_MAX_CPUS_PER_CLUSTER
8
#define PLAT_MAX_PE_PER_CPU
1
#define PLAT_MAX_CPUS_PER_CLUSTER
U(8)
#define PLAT_MAX_PE_PER_CPU
U(1)
/*
* Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes
...
...
plat/arm/css/sgm/include/sgm_base_platform_def.h
View file @
43636796
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -17,8 +17,8 @@
#include <plat/common/common_def.h>
/* CPU topology */
#define PLAT_ARM_CLUSTER_COUNT
1
#define PLAT_ARM_CLUSTER_CORE_COUNT
8
#define PLAT_ARM_CLUSTER_COUNT
U(1)
#define PLAT_ARM_CLUSTER_CORE_COUNT
U(8)
#define PLATFORM_CORE_COUNT PLAT_ARM_CLUSTER_CORE_COUNT
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL2
...
...
plat/common/plat_psci_common.c
View file @
43636796
/*
* Copyright (c) 2016-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -94,7 +94,7 @@ void plat_psci_stat_accounting_stop(
*/
u_register_t
plat_psci_stat_get_residency
(
unsigned
int
lvl
,
const
psci_power_state_t
*
state_info
,
int
last_cpu_idx
)
unsigned
int
last_cpu_idx
)
{
plat_local_state_t
state
;
unsigned
long
long
pwrup_ts
=
0
,
pwrdn_ts
=
0
;
...
...
@@ -105,7 +105,7 @@ u_register_t plat_psci_stat_get_residency(unsigned int lvl,
assert
(
last_cpu_idx
<=
PLATFORM_CORE_COUNT
);
if
(
lvl
==
PSCI_CPU_PWR_LVL
)
assert
(
(
unsigned
int
)
last_cpu_idx
==
plat_my_core_pos
());
assert
(
last_cpu_idx
==
plat_my_core_pos
());
/*
* If power down is requested, then timestamp capture will
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment