Module Name: src Committed By: maxv Date: Tue Feb 13 09:26:18 UTC 2018
Modified Files: src/sys/kern: kern_tc.c Log Message: Put time_second and time_uptime in different cache lines, probably saves us some false sharing. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/kern_tc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_tc.c diff -u src/sys/kern/kern_tc.c:1.48 src/sys/kern/kern_tc.c:1.49 --- src/sys/kern/kern_tc.c:1.48 Thu Nov 2 15:28:23 2017 +++ src/sys/kern/kern_tc.c Tue Feb 13 09:26:17 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_tc.c,v 1.48 2017/11/02 15:28:23 riastradh Exp $ */ +/* $NetBSD: kern_tc.c,v 1.49 2018/02/13 09:26:17 maxv Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ #include <sys/cdefs.h> /* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */ -__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.48 2017/11/02 15:28:23 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.49 2018/02/13 09:26:17 maxv Exp $"); #ifdef _KERNEL_OPT #include "opt_ntp.h" @@ -131,8 +131,8 @@ static struct timehands *volatile timeha struct timecounter *timecounter = &dummy_timecounter; static struct timecounter *timecounters = &dummy_timecounter; -volatile time_t time_second = 1; -volatile time_t time_uptime = 1; +volatile time_t time_second __cacheline_aligned = 1; +volatile time_t time_uptime __cacheline_aligned = 1; static struct bintime timebasebin;