Fixed Spelling (#4713)

This commit is contained in:
David Sidrane
2016-06-01 06:35:42 -10:00
parent 201b5e36fa
commit a7946aa771
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ __EXPORT int board_dma_alloc_init(void);
*
************************************************************************************/
#if defined(BOARD_DMA_ALLOC_POOL_SIZE)
__EXPORT int board_get_dma_usage(uint16_t *dma_total, uint16_t *dma_used, uint16_t *dma_peek_used);
__EXPORT int board_get_dma_usage(uint16_t *dma_total, uint16_t *dma_used, uint16_t *dma_peak_used);
#else
#define board_get_dma_usage(dma_total,dma_used, dma_peek_used) (-ENOMEM)
#define board_get_dma_usage(dma_total,dma_used, dma_peak_used) (-ENOMEM)
#endif
+6 -6
View File
@@ -91,7 +91,7 @@ static GRAN_HANDLE dma_allocator;
static uint8_t g_dma_heap[BOARD_DMA_ALLOC_POOL_SIZE] __attribute__((aligned(64)));
static perf_counter_t g_dma_perf;
static uint16_t dma_heap_inuse;
static uint16_t dma_heap_peek_use;
static uint16_t dma_heap_peak_use;
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -107,18 +107,18 @@ __EXPORT int board_dma_alloc_init(void)
} else {
dma_heap_inuse = 0;
dma_heap_peek_use = 0;
dma_heap_peak_use = 0;
g_dma_perf = perf_alloc(PC_COUNT, "dma_alloc");
}
return OK;
}
__EXPORT int board_get_dma_usage(uint16_t *dma_total, uint16_t *dma_used, uint16_t *dma_peek_used)
__EXPORT int board_get_dma_usage(uint16_t *dma_total, uint16_t *dma_used, uint16_t *dma_peak_used)
{
*dma_total = sizeof(g_dma_heap);
*dma_used = dma_heap_inuse;
*dma_peek_used = dma_heap_peek_use;
*dma_peak_used = dma_heap_peak_use;
return OK;
}
@@ -139,8 +139,8 @@ fat_dma_alloc(size_t size)
if (rv != NULL) {
dma_heap_inuse += size;
if (dma_heap_inuse > dma_heap_peek_use) {
dma_heap_peek_use = dma_heap_inuse;
if (dma_heap_inuse > dma_heap_peak_use) {
dma_heap_peak_use = dma_heap_inuse;
}
}
+4 -4
View File
@@ -218,14 +218,14 @@ void print_load(uint64_t t, int fd, struct print_load_s *print_state)
#if defined(BOARD_DMA_ALLOC_POOL_SIZE)
uint16_t dma_total;
uint16_t dma_used;
uint16_t dma_peek_used;
uint16_t dma_peak_used;
if (board_get_dma_usage(&dma_total, &dma_used, &dma_peek_used) >= 0) {
dprintf(fd, "%sDMA Memory: %d total, %d used %d peek\n",
if (board_get_dma_usage(&dma_total, &dma_used, &dma_peak_used) >= 0) {
dprintf(fd, "%sDMA Memory: %d total, %d used %d peak\n",
clear_line,
dma_total,
dma_used,
dma_peek_used);
dma_peak_used);
}
#endif