Re: tpm(4): don't use tvtohz(9)

2021-01-14 Thread Mark Kettenis
> Date: Wed, 13 Jan 2021 21:39:37 -0600 > From: Scott Cheloha > > On Fri, Jan 08, 2021 at 08:21:14PM +0100, Florian Obser wrote: > > > > My x1 gen 2 seems to have a TPM 1.2 chip. Or can emulate one? > > The bios is confusing. I had it disabled until now. > > It seems to be able to suspend/resume

Re: tpm(4): don't use tvtohz(9)

2021-01-13 Thread Scott Cheloha
On Fri, Jan 08, 2021 at 08:21:14PM +0100, Florian Obser wrote: > On Fri, Jan 08, 2021 at 11:48:33AM -0600, Scott Cheloha wrote: > > On Fri, Jan 08, 2021 at 05:41:24PM +0100, Mark Kettenis wrote: > > > > Date: Fri, 8 Jan 2021 10:27:38 -0600 > > > > From: Scott Cheloha > > > > > > > > On Wed, Jan 0

Re: tpm(4): don't use tvtohz(9)

2021-01-08 Thread Florian Obser
On Fri, Jan 08, 2021 at 11:48:33AM -0600, Scott Cheloha wrote: > On Fri, Jan 08, 2021 at 05:41:24PM +0100, Mark Kettenis wrote: > > > Date: Fri, 8 Jan 2021 10:27:38 -0600 > > > From: Scott Cheloha > > > > > > On Wed, Jan 06, 2021 at 11:26:27PM +0100, Mark Kettenis wrote: > > > > > Date: Wed, 6 Ja

Re: tpm(4): don't use tvtohz(9)

2021-01-08 Thread Scott Cheloha
On Fri, Jan 08, 2021 at 05:41:24PM +0100, Mark Kettenis wrote: > > Date: Fri, 8 Jan 2021 10:27:38 -0600 > > From: Scott Cheloha > > > > On Wed, Jan 06, 2021 at 11:26:27PM +0100, Mark Kettenis wrote: > > > > Date: Wed, 6 Jan 2021 16:16:27 -0600 > > > > From: Scott Cheloha > > > > > > > > On Wed,

Re: tpm(4): don't use tvtohz(9)

2021-01-08 Thread Mark Kettenis
> Date: Fri, 8 Jan 2021 10:27:38 -0600 > From: Scott Cheloha > > On Wed, Jan 06, 2021 at 11:26:27PM +0100, Mark Kettenis wrote: > > > Date: Wed, 6 Jan 2021 16:16:27 -0600 > > > From: Scott Cheloha > > > > > > On Wed, Jan 06, 2021 at 12:16:13PM -0600, Scott Cheloha wrote: > > > > As mentioned in

Re: tpm(4): don't use tvtohz(9)

2021-01-08 Thread Scott Cheloha
On Wed, Jan 06, 2021 at 11:26:27PM +0100, Mark Kettenis wrote: > > Date: Wed, 6 Jan 2021 16:16:27 -0600 > > From: Scott Cheloha > > > > On Wed, Jan 06, 2021 at 12:16:13PM -0600, Scott Cheloha wrote: > > > As mentioned in a prior mail, tpm(4) is the last user of tvtohz(9) in > > > the tree. > > >

Re: tpm(4): don't use tvtohz(9)

2021-01-06 Thread Mark Kettenis
> Date: Wed, 6 Jan 2021 16:16:27 -0600 > From: Scott Cheloha > > On Wed, Jan 06, 2021 at 12:16:13PM -0600, Scott Cheloha wrote: > > As mentioned in a prior mail, tpm(4) is the last user of tvtohz(9) in > > the tree. > > > > However, we don't need to use tvtohz(9) in tpm(4) at all. Converting >

Re: tpm(4): don't use tvtohz(9)

2021-01-06 Thread Scott Cheloha
On Wed, Jan 06, 2021 at 12:16:13PM -0600, Scott Cheloha wrote: > As mentioned in a prior mail, tpm(4) is the last user of tvtohz(9) in > the tree. > > However, we don't need to use tvtohz(9) in tpm(4) at all. Converting > from milliseconds to ticks is trivial. Using an intermediary timeval > is

Re: tpm(4): don't use tvtohz(9)

2021-01-06 Thread Klemens Nanni
On Wed, Jan 06, 2021 at 12:16:13PM -0600, Scott Cheloha wrote: > As mentioned in a prior mail, tpm(4) is the last user of tvtohz(9) in > the tree. > > However, we don't need to use tvtohz(9) in tpm(4) at all. Converting > from milliseconds to ticks is trivial. Using an intermediary timeval > is

tpm(4): don't use tvtohz(9)

2021-01-06 Thread Scott Cheloha
As mentioned in a prior mail, tpm(4) is the last user of tvtohz(9) in the tree. However, we don't need to use tvtohz(9) in tpm(4) at all. Converting from milliseconds to ticks is trivial. Using an intermediary timeval is just pointless indirection. With this committed I will be able to remove b