Skip to content
Snippets Groups Projects
Commit 45fbff65 authored by Luis Gerhorst's avatar Luis Gerhorst Committed by Bernhard Heinloth
Browse files

ifdef around pmccntr struct / read

parent f9c1ac5e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
#include <linux/debugfs.h>
#ifdef CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR
struct pmccntr_timestamp {
volatile uint32_t value;
/* Additional information such as overflow counter could go here if
......@@ -15,6 +17,8 @@ struct pmccntr_timestamp {
#define pmccntr_read(var) \
asm volatile ("mrc p15, 0, %0, c9, c13, 0\n\t" : "=r" (var))
#endif /* CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR */
struct checkpoint_record {
const char *name;
#ifdef CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment