Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
5 years ago
by
Mark Dykes
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "Unify type of "cpu_idx" across PSCI module." into integration
parents
1522958f
5b33ad17
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
plat/arm/board/rdn1edge/include/platform_def.h
+3
-3
plat/arm/board/rdn1edge/include/platform_def.h
plat/arm/board/sgi575/include/platform_def.h
+4
-4
plat/arm/board/sgi575/include/platform_def.h
plat/arm/board/sgm775/include/platform_def.h
+3
-3
plat/arm/board/sgm775/include/platform_def.h
plat/arm/css/sgm/include/sgm_base_platform_def.h
+3
-3
plat/arm/css/sgm/include/sgm_base_platform_def.h
plat/common/plat_psci_common.c
+3
-3
plat/common/plat_psci_common.c
with
16 additions
and
16 deletions
+16
-16
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help