From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbbKYTCS (ORCPT ); Wed, 25 Nov 2015 14:02:18 -0500 Received: from mail-yk0-f180.google.com ([209.85.160.180]:33037 "EHLO mail-yk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120AbbKYTB5 (ORCPT ); Wed, 25 Nov 2015 14:01:57 -0500 Date: Wed, 25 Nov 2015 14:01:50 -0500 From: Tejun Heo To: Arnd Bergmann Cc: Li Zefan , cgroups@vger.kernel.org, Heena Sirwani , linux-kernel@vger.kernel.org, y2038@lists.linaro.org, tglx@linutronix.de, John Stultz Subject: Re: [PATCH] cpuset: Replace all instances of time_t with time64_t Message-ID: <20151125190150.GA14240@htj.duckdns.org> References: <2798266.9VZu01a7d1@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2798266.9VZu01a7d1@wuerfel> User-Agent: Mutt/1.5.23 (2015-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2015 at 04:16:55PM +0100, Arnd Bergmann wrote: > The following patch replaces all instances of time_t with time64_t i.e. > change the type used for representing time from 32-bit to 64-bit. All > 32-bit kernels to date use a signed 32-bit time_t type, which can only > represent time until January 2038. Since embedded systems running 32-bit > Linux are going to survive beyond that date, we have to change all > current uses, in a backwards compatible way. > > The patch also changes the function get_seconds() that returns a 32-bit > integer to ktime_get_seconds() that returns seconds as 64-bit integer. > > The patch changes the type of ticks from time_t to u32. We keep ticks as > 32-bits as the function uses 32-bit arithmetic which would prove less > expensive than 64-bit arithmetic and the function is expected to be > called atleast once every 32 seconds. > > Signed-off-by: Heena Sirwani > Reviewed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann Applied to cgroup/for-4.5. Thanks. -- tejun