[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48bb2650-ed00-ec07-31bf-8780d3ab5568@redhat.com>
Date: Fri, 20 Jan 2017 13:55:27 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Marcelo Tosatti <mtosatti@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Radim Krcmar <rkrcmar@...hat.com>,
Richard Cochran <richardcochran@...il.com>,
Miroslav Lichvar <mlichvar@...hat.com>
Subject: Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross
timestamps infrastructure
On 20/01/2017 13:20, Marcelo Tosatti wrote:
> kernel/time/timekeeping.c | 79 +++++++++++++++++++++++++++++++++++++++
Why not leave this in drivers/ptp/ptp_chardev.c?
> + if (ptp->info->emulate_ptp_sys_offset_mean) {
> + err = emulate_ptp_sys_offset(ptp->info, sysoff, arg);
> + break;
> + }
I think this should be simply "if (!ptp->info->gettime64)" and,
likewise, there should be an emulation based getcrosststamp in
ptp_clock_gettime.
Paolo
Powered by blists - more mailing lists