[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL7Bo8HoYU1mbUbw-k0ufj7n8D=Z_hLtf268gKeyACcnZHH5rw@mail.gmail.com>
Date: Fri, 26 Sep 2014 12:53:15 +0100
From: Mike Surcouf <mps.surcouf.lkml@...il.com>
To: Thomas Shao <huishao@...rosoft.com>
Cc: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"driverdev-devel@...uxdriverproject.org"
<driverdev-devel@...uxdriverproject.org>,
Olaf Hering <olaf@...fle.de>, Robo Bot <apw@...onical.com>,
"jasowang@...hat.com" <jasowang@...hat.com>,
KY Srinivasan <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>
Subject: Re: [PATCH] Drivers: hv: util: Implement Time Synchronization using
host time sample
> +/* helper function to call adjtimex command in user mode */
> +static void run_adjtimex_cmd(s64 tickvalue)
> +{
> + char *argv[4], *envp[3];
> + char str_tickvalue[20];
> +
> + sprintf(str_tickvalue, "%lld", tickvalue);
> +
> + argv[0] = "/sbin/adjtimex";
> + argv[1] = "-t";
> + argv[2] = str_tickvalue;
> + argv[3] = NULL;
> +
> + envp[0] = "HOME=/";
> + envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin";
> + envp[2] = NULL;
> +
> + call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
> +}
What happens when adjtimex is not present?
Is there no kernel space function for that?
Does this patch affect "not setting correct time on restore" or "not
setting correct time on live migration" bug?
Thanks
Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists