]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blobdiff - driver/gator_events_net.c
gator: Version 5.14
[android-sdk/arm-ds5-gator.git] / driver / gator_events_net.c
index b6ce06aabb43032bfdbcc8240449856d0f25aa8a..80cdee41ae3d620dbec0fa0f470b7f8721e39931 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (C) ARM Limited 2010-2012. All rights reserved.
+ * Copyright (C) ARM Limited 2010-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
@@ -117,7 +117,7 @@ static int gator_events_net_read(int **buffer)
        int len, rx_delta, tx_delta;
        static int last_rx_delta = 0, last_tx_delta = 0;
 
-       if (smp_processor_id() != 0)
+       if (!on_primary_core())
                return 0;
 
        if (!netrx_enabled && !nettx_enabled)