mirror of
https://github.com/apache/nuttx.git
synced 2026-10-19 20:58:54 +00:00
arm/cortex-r: add _pmu_* perfix for performance monitor functions
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
f095bf8f39
commit
34b124bc14
2 changed files with 4 additions and 4 deletions
|
|
@ -526,7 +526,7 @@ static inline void cp15_wractlr(unsigned int actlr)
|
|||
|
||||
/* 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;
|
||||
__asm__ __volatile__
|
||||
|
|
@ -540,7 +540,7 @@ static inline unsigned int cp15_rdpmcr(void)
|
|||
return pmcr;
|
||||
}
|
||||
|
||||
static inline void cp15_wrpmcr(unsigned int pmcr)
|
||||
static inline void cp15_pmu_wrpmcr(unsigned int pmcr)
|
||||
{
|
||||
__asm__ __volatile__
|
||||
(
|
||||
|
|
|
|||
|
|
@ -104,9 +104,9 @@
|
|||
|
||||
static inline void tms570_event_export(void)
|
||||
{
|
||||
uint32_t pmcr = cp15_rdpmcr();
|
||||
uint32_t pmcr = cp15_pmu_rdpmcr();
|
||||
pmcr |= PCMR_X;
|
||||
cp15_wrpmcr(pmcr);
|
||||
cp15_pmu_wrpmcr(pmcr);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue