Skip to content

Commit d1f5012

Browse files
Andrew Boienashif
authored andcommitted
kernel: move timing externs to public header
These arch_timing_ defines get used in certain timer drivers and need to be in the public include space, and not the private kernel headers. Signed-off-by: Andrew Boie <[email protected]>
1 parent f12d3f2 commit d1f5012

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

include/sys/arch_interface.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,27 @@ size_t arch_user_string_nlen(const char *s, size_t maxsize, int *err);
641641

642642
/** @} */
643643

644+
/**
645+
* @defgroup arch-benchmarking Architecture-specific benchmarking globals
646+
* @ingroup arch-interface
647+
* @{
648+
*/
649+
650+
#ifdef CONFIG_EXECUTION_BENCHMARKING
651+
extern u64_t arch_timing_swap_start;
652+
extern u64_t arch_timing_swap_end;
653+
extern u64_t arch_timing_irq_start;
654+
extern u64_t arch_timing_irq_end;
655+
extern u64_t arch_timing_tick_start;
656+
extern u64_t arch_timing_tick_end;
657+
extern u64_t arch_timing_user_mode_end;
658+
extern u32_t arch_timing_value_swap_end;
659+
extern u64_t arch_timing_value_swap_common;
660+
extern u64_t arch_timing_value_swap_temp;
661+
#endif /* CONFIG_EXECUTION_BENCHMARKING */
662+
663+
/** @} */
664+
644665
#ifdef __cplusplus
645666
}
646667
#endif /* __cplusplus */

kernel/include/kernel_arch_interface.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -212,29 +212,6 @@ static inline bool arch_is_in_isr(void);
212212

213213
/** @} */
214214

215-
216-
/**
217-
* @defgroup arch-benchmarking Architecture-specific benchmarking globals
218-
* @ingroup arch-interface
219-
* @{
220-
*/
221-
222-
#ifdef CONFIG_EXECUTION_BENCHMARKING
223-
extern u64_t arch_timing_swap_start;
224-
extern u64_t arch_timing_swap_end;
225-
extern u64_t arch_timing_irq_start;
226-
extern u64_t arch_timing_irq_end;
227-
extern u64_t arch_timing_tick_start;
228-
extern u64_t arch_timing_tick_end;
229-
extern u64_t arch_timing_user_mode_end;
230-
extern u32_t arch_timing_value_swap_end;
231-
extern u64_t arch_timing_value_swap_common;
232-
extern u64_t arch_timing_value_swap_temp;
233-
#endif /* CONFIG_EXECUTION_BENCHMARKING */
234-
235-
/** @} */
236-
237-
238215
/**
239216
* @defgroup arch-misc Miscellaneous architecture APIs
240217
* @ingroup arch-interface

0 commit comments

Comments
 (0)