mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
arm/cortex-r: add _pmu_* perfix for performance monitor functions
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f095bf8f39
commit
34b124bc14
@@ -526,7 +526,7 @@ static inline void cp15_wractlr(unsigned int actlr)
|
|||||||
|
|
||||||
/* Read/write the Performance Monitor Control Register (PMCR) */
|
/* Read/write the Performance Monitor Control Register (PMCR) */
|
||||||
|
|
||||||
static inline unsigned int cp15_rdpmcr(void)
|
static inline unsigned int cp15_pmu_rdpmcr(void)
|
||||||
{
|
{
|
||||||
unsigned int pmcr;
|
unsigned int pmcr;
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__
|
||||||
@@ -540,7 +540,7 @@ static inline unsigned int cp15_rdpmcr(void)
|
|||||||
return pmcr;
|
return pmcr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void cp15_wrpmcr(unsigned int pmcr)
|
static inline void cp15_pmu_wrpmcr(unsigned int pmcr)
|
||||||
{
|
{
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -104,9 +104,9 @@
|
|||||||
|
|
||||||
static inline void tms570_event_export(void)
|
static inline void tms570_event_export(void)
|
||||||
{
|
{
|
||||||
uint32_t pmcr = cp15_rdpmcr();
|
uint32_t pmcr = cp15_pmu_rdpmcr();
|
||||||
pmcr |= PCMR_X;
|
pmcr |= PCMR_X;
|
||||||
cp15_wrpmcr(pmcr);
|
cp15_pmu_wrpmcr(pmcr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user