1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 5 unchanged lines hidden (view full) --- 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 * |
22 * $FreeBSD: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c 209059 2010-06-11 18:46:34Z jhb $ |
23 * 24 */ 25/* 26 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 27 * Use is subject to license terms. 28 */ 29 30#include <sys/param.h> --- 403 unchanged lines hidden (view full) --- 434 * - it provides quite good precision (e < 0.01%) up to THz 435 * (terahertz) values; 436 */ 437 nsec_scale = ((uint64_t)NANOSEC << SCALE_SHIFT) / tsc_f; 438 439 /* The current CPU is the reference one. */ 440 tsc_skew[curcpu] = 0; 441 |
442 CPU_FOREACH(i) { |
443 if (i == curcpu) 444 continue; 445 |
446 map = 0; 447 map |= (1 << curcpu); 448 map |= (1 << i); 449 450 smp_rendezvous_cpus(map, dtrace_gethrtime_init_sync, 451 dtrace_gethrtime_init_cpu, 452 smp_no_rendevous_barrier, (void *)(uintptr_t) i); 453 --- 92 unchanged lines hidden --- |