aboutsummaryrefslogtreecommitdiff
path: root/driver/gator_events_mali_t6xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/gator_events_mali_t6xx.c')
-rw-r--r--driver/gator_events_mali_t6xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/gator_events_mali_t6xx.c b/driver/gator_events_mali_t6xx.c
index 1b3a53d..2576a99 100644
--- a/driver/gator_events_mali_t6xx.c
+++ b/driver/gator_events_mali_t6xx.c
@@ -1,5 +1,5 @@
/**
- * Copyright (C) ARM Limited 2011-2012. All rights reserved.
+ * Copyright (C) ARM Limited 2011-2013. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -411,7 +411,7 @@ static int read(int **buffer)
long sample_interval_us = 0;
struct timespec read_timestamp;
- if (smp_processor_id() != 0) {
+ if (!on_primary_core()) {
return 0;
}