From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 1/2] switch to g_timeout_add_seconds()
Date: Wed, 24 Mar 2010 20:26:27 -0700 [thread overview]
Message-ID: <1269487588-14046-2-git-send-email-kristen@linux.intel.com> (raw)
In-Reply-To: <1269487588-14046-1-git-send-email-kristen@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
we don't care that much about the exactness of our timer, so use
the more power efficient call.
---
gatchat/ppp_cp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gatchat/ppp_cp.c b/gatchat/ppp_cp.c
index 3132af5..de72066 100644
--- a/gatchat/ppp_cp.c
+++ b/gatchat/ppp_cp.c
@@ -56,7 +56,7 @@ struct pppcp_event {
guint8 data[0];
};
-#define INITIAL_RESTART_TIMEOUT 3000
+#define INITIAL_RESTART_TIMEOUT 3 /* restart interval in seconds */
#define MAX_TERMINATE 2
#define MAX_CONFIGURE 10
#define MAX_FAILURE 5
@@ -107,7 +107,7 @@ static gboolean pppcp_timeout(gpointer user_data)
static void pppcp_start_timer(struct pppcp_data *data)
{
- data->restart_timer = g_timeout_add(data->restart_interval,
+ data->restart_timer = g_timeout_add_seconds(data->restart_interval,
pppcp_timeout, data);
}
--
1.6.6.1
next prev parent reply other threads:[~2010-03-25 3:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 3:26 [PATCH 0/2] fix PPP timer issues Kristen Carlson Accardi
2010-03-25 3:26 ` Kristen Carlson Accardi [this message]
2010-03-25 3:26 ` [PATCH 2/2] use separate timers for PPP config and terminate Kristen Carlson Accardi
2010-03-25 4:05 ` [PATCH 0/2] fix PPP timer issues Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1269487588-14046-2-git-send-email-kristen@linux.intel.com \
--to=kristen@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox