lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 3 Jan 2017 11:36:34 +0100
From:   Peter Zijlstra <peterz@...radead.org>
To:     linux-kernel@...r.kernel.org, mingo@...nel.org, tglx@...utronix.de,
        hpa@...or.com
Cc:     linux-tip-commits@...r.kernel.org
Subject: Re: [tip:timers/urgent] ktime: Get rid of the union

On Sun, Dec 25, 2016 at 05:26:33AM -0800, tip-bot for Thomas Gleixner wrote:
> Commit-ID:  64dac5c9e0f5a933e4520f0cb689b7b143925207
> Gitweb:     http://git.kernel.org/tip/64dac5c9e0f5a933e4520f0cb689b7b143925207
> Author:     Thomas Gleixner <tglx@...utronix.de>
> AuthorDate: Sun, 25 Dec 2016 11:38:40 +0100
> Committer:  Thomas Gleixner <tglx@...utronix.de>
> CommitDate: Sun, 25 Dec 2016 13:11:50 +0100
> 
> ktime: Get rid of the union
> 
> ktime is a union because the initial implementation stored the time in
> scalar nanoseconds on 64 bit machine and in a endianess optimized timespec
> variant for 32bit machines. The Y2038 cleanup removed the timespec variant
> and switched everything to scalar nanoseconds. The union remained, but
> become completely pointless.
> 
> Get rid of the union and just keep ktime_t as simple typedef of type s64.

All good stuff. One question that remains is why keep the type while
removing the cycles_t type?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ