summaryrefslogtreecommitdiff
path: root/src/linux/up-device-csr.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
committerRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
commit82a6a882d03c145625edbe23dade65bc14f85e73 (patch)
treeaa4585bd7d72bb45bc83528933ff8e624c5877f0 /src/linux/up-device-csr.c
parent2aba7d4cfbad7f04934be455317ddfd64689e3c1 (diff)
downloadupower-82a6a882d03c145625edbe23dade65bc14f85e73.tar.gz
Assign names to our idle sources when using new versions of glib2
This makes it possible to profile more accurately using systemtap
Diffstat (limited to 'src/linux/up-device-csr.c')
-rw-r--r--src/linux/up-device-csr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/linux/up-device-csr.c b/src/linux/up-device-csr.c
index d4a6486..c1c88b2 100644
--- a/src/linux/up-device-csr.c
+++ b/src/linux/up-device-csr.c
@@ -211,6 +211,9 @@ up_device_csr_coldplug (UpDevice *device)
csr->priv->poll_timer_id = g_timeout_add_seconds (UP_DEVICE_CSR_REFRESH_TIMEOUT,
(GSourceFunc) up_device_csr_poll_cb, csr);
+#if GLIB_CHECK_VERSION(2,25,8)
+ g_source_set_name_by_id (csr->priv->poll_timer_id, "[UpDeviceCsr] poll");
+#endif
out:
return ret;
}