Changeset 11b285d in mainline for kernel/generic/src/sysinfo/stats.c
- Timestamp:
- 2018-05-13T15:19:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad896eb
- Parents:
- 13db2044
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r13db2044 r11b285d 101 101 102 102 /* Assumption: config.cpu_count is constant */ 103 stats_cpu_t *stats_cpus = (stats_cpu_t *) malloc(*size , FRAME_ATOMIC);103 stats_cpu_t *stats_cpus = (stats_cpu_t *) malloc(*size); 104 104 if (stats_cpus == NULL) { 105 105 *size = 0; … … 307 307 } 308 308 309 stats_task_t *stats_tasks = (stats_task_t *) malloc(*size , FRAME_ATOMIC);309 stats_task_t *stats_tasks = (stats_task_t *) malloc(*size); 310 310 if (stats_tasks == NULL) { 311 311 /* No free space for allocation */ … … 413 413 } 414 414 415 stats_thread_t *stats_threads = (stats_thread_t *) malloc(*size , FRAME_ATOMIC);415 stats_thread_t *stats_threads = (stats_thread_t *) malloc(*size); 416 416 if (stats_threads == NULL) { 417 417 /* No free space for allocation */ … … 479 479 /* Allocate stats_task_t structure */ 480 480 stats_task_t *stats_task = 481 (stats_task_t *) malloc(sizeof(stats_task_t) , FRAME_ATOMIC);481 (stats_task_t *) malloc(sizeof(stats_task_t)); 482 482 if (stats_task == NULL) { 483 483 irq_spinlock_unlock(&tasks_lock, true); … … 550 550 /* Allocate stats_thread_t structure */ 551 551 stats_thread_t *stats_thread = 552 (stats_thread_t *) malloc(sizeof(stats_thread_t) , FRAME_ATOMIC);552 (stats_thread_t *) malloc(sizeof(stats_thread_t)); 553 553 if (stats_thread == NULL) { 554 554 irq_spinlock_unlock(&threads_lock, true); … … 592 592 593 593 stats_exc_t *stats_exceptions = 594 (stats_exc_t *) malloc(*size , FRAME_ATOMIC);594 (stats_exc_t *) malloc(*size); 595 595 if (stats_exceptions == NULL) { 596 596 /* No free space for allocation */ … … 670 670 /* Allocate stats_exc_t structure */ 671 671 stats_exc_t *stats_exception = 672 (stats_exc_t *) malloc(sizeof(stats_exc_t) , FRAME_ATOMIC);672 (stats_exc_t *) malloc(sizeof(stats_exc_t)); 673 673 if (stats_exception == NULL) 674 674 return ret; … … 713 713 714 714 stats_physmem_t *stats_physmem = 715 (stats_physmem_t *) malloc(*size , FRAME_ATOMIC);715 (stats_physmem_t *) malloc(*size); 716 716 if (stats_physmem == NULL) { 717 717 *size = 0; … … 743 743 return NULL; 744 744 745 load_t *stats_load = (load_t *) malloc(*size , FRAME_ATOMIC);745 load_t *stats_load = (load_t *) malloc(*size); 746 746 if (stats_load == NULL) { 747 747 *size = 0;
Note:
See TracChangeset
for help on using the changeset viewer.