aboutsummaryrefslogtreecommitdiff
path: root/driver/gator_events_net.c
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2013-12-16 12:00:00 -0800
committerDrew Richardson <drew.richardson@arm.com>2014-12-19 15:48:40 -0800
commit9b0375410d73fb0de515ee33e0dd7f054cd45a6f (patch)
tree6a2a9dfa45fe1a25b0959f10401e200687fd1a03 /driver/gator_events_net.c
parentdf48c99f8da89ef9a91fac638b8e0528507bd088 (diff)
downloadgator-9b0375410d73fb0de515ee33e0dd7f054cd45a6f.tar.gz
gator: Version 5.175.17
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'driver/gator_events_net.c')
-rw-r--r--driver/gator_events_net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver/gator_events_net.c b/driver/gator_events_net.c
index 80cdee4..9c8d3a4 100644
--- a/driver/gator_events_net.c
+++ b/driver/gator_events_net.c
@@ -73,6 +73,8 @@ static void calculate_delta(int *rx, int *tx)
static int gator_events_net_create_files(struct super_block *sb, struct dentry *root)
{
+ // Network counters are not currently supported in RT-Preempt full because mod_timer is used
+#ifndef CONFIG_PREEMPT_RT_FULL
struct dentry *dir;
dir = gatorfs_mkdir(sb, root, "Linux_net_rx");
@@ -88,6 +90,7 @@ static int gator_events_net_create_files(struct super_block *sb, struct dentry *
}
gatorfs_create_ulong(sb, dir, "enabled", &nettx_enabled);
gatorfs_create_ro_ulong(sb, dir, "key", &nettx_key);
+#endif
return 0;
}
@@ -167,5 +170,3 @@ int gator_events_net_init(void)
return gator_events_install(&gator_events_net_interface);
}
-
-gator_events_init(gator_events_net_init);