Home
last modified time | relevance | path

Searched +full:system +full:- +full:clock +full:- +full:frequency (Results 1 – 25 of 133) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/sys/
H A Dtimex.h18 * Copyright 1996-1997, 2002 Sun Microsystems, Inc. All rights reserved.
36 * phase-lock loop (PLL) model used in the kernel implementation. These
41 * establishes the timer interrupt frequency.
54 #define SCALE_KF (1<<16) /* PLL frequency factor (multiplier) */
55 #define SCALE_KH (1<<2) /* FLL frequency factor (multiplier) */
62 * possible without overflow of a 32-bit word.
65 * which serves as a an extension to the low-order bits of the system
66 * clock variable time.tv_usec.
73 * time_tolerance variables, which represent the current frequency
74 * offset and maximum frequency tolerance.
[all …]
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpupm_amd.c29 * AMD-specific CPU power management support.
36 * In the early 2000s, AMD shipped a feature called PowerNow! in the K6 era -
37 * K6-2E+ and K6-III+ cores, according to "AMD PowerNow! Technology Dynamically
40 * that is very similar to ACPI P-states. That is, selectable core voltage and
41 * frequency levels, with default "power-saver" and "high-performance" modes
42 * that are reflective of Pmin and Pmax on a 2024-era AMD processor.
45 * frequency management with the "Turbo Core" feature. They talk about this in
51 * * introduces the notion of boosting all cores beyond a "base frequency"
54 * * introduces the notion of power-governed turbo boost
56 * Somewhere in the K10 era, AMD also introduced C-state support, allowing cores
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dclock.c84 * clock() is called straight from the clock cyclic; see clock_init().
87 * reprime clock
99 * high-precision avenrun values. These are needed to make the
104 time_t time; /* time in seconds since 1970 - for compatibility only */
108 * Phase/frequency-lock loop (PLL/FLL) definitions
110 * The following variables are read and set by the ntp_adjtime() system
113 * time_state shows the state of the system clock, with values defined
116 * time_status shows the status of the system clock, with bits defined
119 * time_offset is used by the PLL/FLL to adjust the system time in small
124 * time_tolerance determines maximum frequency error or tolerance of the
[all …]
/illumos-gate/usr/src/uts/sun4u/sunfire/sys/
H A Dsysctrl.h89 * OBP supplies us with 3 register sets for the clock-board node. The code for
96 * 0 Clock frequency registers
98 * 2 Clock version register
107 #define SYS_OFF_CLK_FREQ2 0x2 /* offset of clock register 2 */
109 /* Important bits for Clock Frequency register 2 */
113 #define CLOCK_FREQ_8 0x01 /* Frequency bit 8 */
115 #define CLOCK_RANGE 0x0c /* Bits 3:2 control the clock range */
119 #define SYS_OFF_CTRL 0x0 /* Offset of System Control register */
120 #define SYS_OFF_STAT1 0x10 /* Offset of System Status1 register */
121 #define SYS_OFF_STAT2 0x20 /* Offset of System Status2 register */
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dntptime.c35 * Added code for external clock
38 * Revised frequency scaling to conform with adjusted parameters
44 * ntp_gettime(), ntp_adjtime() - precision time interface
50 * routine is used by the NTP daemon to adjust the system clock to an
52 * this routine are used by clock() to adjust the phase and
53 * frequency of the phase-lock loop which controls the system clock.
71 * ntp_gettime() - NTP user application interface
110 * the system clock may not be trusted, not about the in ntp_gettime()
117 * PPS signal lost when either time or frequency in ntp_gettime()
131 * frequency synchronization requested in ntp_gettime()
[all …]
H A Dsysconfig.c64 return (mach_sysconfig(which)); /* `uname -i`/os */ in sysconfig()
67 return ((long)hz); /* clock frequency per second */ in sysconfig()
70 return ((long)hz); /* profiling clock freq per sec */ in sysconfig()
84 mutex_enter(&curproc->p_lock); in sysconfig()
86 rctlproc_legacy[RLIMIT_NOFILE], curproc->p_rctls, in sysconfig()
88 mutex_exit(&curproc->p_lock); in sysconfig()
108 return (zone_ncpus_get(curproc->p_zone)); in sysconfig()
111 return (zone_ncpus_online_get(curproc->p_zone)); in sysconfig()
120 return (curproc->p_stkprot & ~PROT_USER); in sysconfig()
141 return (_SIGRTMAX - _SIGRTMIN + 1); in sysconfig()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Ddisplay_sun4u.c65 struct mem_total memory_total; /* Total memory in system */ in display()
67 sys_clk = -1; /* System clock freq. (in MHz) */ in display()
82 * Display system banner in display()
86 log_printf(dgettext(TEXT_DOMAIN, "System Configuration: " in display()
88 get_prop_val(find_prop(root, "banner-name")), 0); in display()
90 /* display system clock frequency */ in display()
91 value = get_prop_val(find_prop(root, "clock-frequency")); in display()
94 log_printf(dgettext(TEXT_DOMAIN, "System clock " in display()
95 "frequency: %d MHz\n"), sys_clk, 0); in display()
201 * The various platforms can over-ride this function to
/illumos-gate/usr/src/boot/include/
H A Dtime.h4 * (c) UNIX System Laboratories, Inc.
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.
50 * Frequency of the clock ticks reported by times(). Deprecated - use
51 * sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
56 /* Frequency of the clock ticks reported by clock(). */
76 * New in POSIX 1003.1b-1993.
106 #define CLOCK_UPTIME 5 /* FreeBSD-specific. */
107 #define CLOCK_UPTIME_PRECISE 7 /* FreeBSD-specific. */
108 #define CLOCK_UPTIME_FAST 8 /* FreeBSD-specific. */
[all …]
/illumos-gate/usr/src/uts/sun4/sys/
H A Dbbc_beep.h23 * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
47 * the BBC free running counter (updated on half the system
48 * clock) that is used to generate the audio signal. So, bit[10]
49 * generates a signal at 1/(2^12) the system frequency, and
50 * bit[18], at 1/(2^20). So if s = system frequency(in MHz),
66 /* Register to set the frequency */
90 #define BEEP_WRITE_CTRL_REG(val) ddi_put8(bbc_beeptr->bbc_beep_regs_handle, \
91 ((uint8_t *)&bbc_beeptr->bbc_beep_regsp->bbc_beep_control), \
94 ddi_put8(bbc_beeptr->bbc_beep_regs_handle, \
95 ((uint8_t *)&bbc_beeptr->bbc_beep_regsp->bbc_beep_counter[no]), \
/illumos-gate/usr/src/man/man1/
H A Daudiotest.19 audiotest \- test audio device
12 \fBaudiotest\fR [\fB-2457\fR] [\fB-l\fR] [\fB-r\fR \fIrate\fR] [\fIdev\fR] ...
17 audio devices found on the system if none is given). The test includes playing
18 an audio sample over each channel and measuring the rate of playback for clock
25 \fB-l\fR
34 \fB-r\fR \fIrate\fR
43 \fB-2\fR
46 Stereo (2-channel) mode. This is the default mode. Playback assumes 2 channels
53 \fB-4\fR
56 Quadraphonic mode (4-channel surround). The test assumes that four surround
[all …]
/illumos-gate/usr/src/cmd/dtrace/demo/sdt/
H A Dinterval.d29 sdt:::callout-start
31 self->callout = ((callout_t *)arg0)->c_func;
35 /self->callout && arg2 <= 100/
40 * 100 ticks. The system clock's frequency ? set by the variable
41 * "hz" ? defaults to 100, so 100 system clock ticks is one second.
43 @callout[self->callout] = lquantize(arg2, 0, 100);
46 sdt:::callout-end
48 self->callout = NULL;
/illumos-gate/usr/src/man/man8/
H A Dccidadm.841 in a human-readable form where applicable.
45 .Bl -tag -width "device"
55 or in a short-hand form.
56 The short-hand form consists of the reader instance, specified by the driver
69 .Bl -tag -width ""
74 Lists the CCID controllers and their slots known to the system and prints their
85 in the system.
86 A human-readable summary of the ATR data is printed when no flags are given.
90 .Bl -tag -width Ds
93 in a human-readable form.
[all …]
/illumos-gate/usr/src/man/man9f/
H A Dddi_get_lbolt.9f9 ddi_get_lbolt \- returns the value of lbolt
25 integer that represents the number of clock ticks since the last system reboot.
26 This value is used as a counter or timer inside the system kernel. The tick
27 frequency can be determined by using \fBdrv_usectohz\fR(9F) which converts
28 microseconds into clock ticks.
/illumos-gate/usr/src/uts/sun4u/io/
H A Dbbc_beep.c212 bbc_beeptr->bbc_beep_dip = dip; in bbc_beep_attach()
215 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_attach()
263 if (bbc_beeptr->bbc_beep_mode == BBC_BEEP_OFF) { in bbc_beep_detach()
299 *result = (void *)bbc_beeptr->bbc_beep_dip; in bbc_beep_info()
322 * Set the frequency
334 /* Convert the frequency in hz to the bbc counter value */ in bbc_beep_freq()
371 bbc_beeptr->bbc_beep_mode = BBC_BEEP_ON; in bbc_beep_on()
390 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_off()
401 * should be mapped into a non-cacheable portion of the system
418 (caddr_t *)&bbc_beeptr->bbc_beep_regsp, in bbc_beep_map_regs()
[all …]
H A Dhardclk.c31 #include <sys/clock.h>
61 int watchdog_available = 0; /* system has a watchdog */
99 * first call is also before /etc/system is read.
102 * has not been tuned via /etc/system.
124 * See the comments in clock.h for a full description of in setcpudelay()
129 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) / in setcpudelay()
133 * scaled_clock_mhz is a more accurated (ie not rounded-off) in setcpudelay()
145 * Pre-calculate number of sticks per usec for drv_usecwait. in setcpudelay()
147 sticks_per_usec = MAX((sys_tick_freq + (MICROSEC - 1)) / MICROSEC, 1); in setcpudelay()
150 cmn_err(CE_WARN, "invalid system frequency"); in setcpudelay()
[all …]
/illumos-gate/usr/src/man/man3nsl/
H A Dsecure_rpc.3nsl11 key_secretkey_is_set, netname2host, netname2user, user2netname \- library
16 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lnsl\fR [ \fIlibrary\fR...]
104 Traditional \fBUNIX-style\fR authentication.
113 \fBDES\fR encryption-based authentication.
120 must be running for the \fBAUTH_DES\fR authentication system to work and
127 The following functions documented on this page are MT-Safe. For the MT-levels
136 authentication system \fBAUTH_DES\fR. The second is the
139 operating system independent, to an \fBAUTH_SYS\fR credential. The
164 authentication handle that enables the use of the secure authentication system.
171 in seconds. If the difference in time between the client's clock and the
[all …]
/illumos-gate/usr/src/uts/sun4u/os/
H A Dmach_mp_startup.c35 * Useful for disabling MP bring-up for an MP capable kernel
41 * Init CPU info - get CPU type info for processor_info system call.
46 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info()
47 int cpuid = cp->cpu_id; in init_cpu_info()
50 cp->cpu_fpowner = NULL; /* not used for V9 */ in init_cpu_info()
53 * Get clock-frequency property from cpunodes[] for the CPU. in init_cpu_info()
55 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info()
58 * Current frequency in Hz. in init_cpu_info()
60 cp->cpu_curr_clock = cpunode->clock_freq; in init_cpu_info()
67 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info()
[all …]
H A Dfillsysinfo.c31 #include <sys/clock.h>
132 #define WATCHDOG_ENABLE "watchdog-enable"
147 * If this variable is non-zero, cpr should return "not supported" when
154 * energystar-v* property (Enchilada server, for example). If this
155 * variable is non-zero, cpr should proceed even in the absence
156 * of the energystar-v* property.
205 GETPROP(prom_chosennode(), CHOSEN_EEPROM, (caddr_t)&ieeprom) != -1) in map_wellknown_devices()
210 * Get System clock frequency from root node if it exists. in map_wellknown_devices()
212 if (GETPROP(root, "stick-frequency", (caddr_t)&stick_freq) != -1) in map_wellknown_devices()
220 for (wkp = wkdevice; wkp->wk_namep; ++wkp) { in map_wellknown_devices()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dvmm_data.h11 /* This file is dual-licensed; see usr/src/contrib/bhyve/LICENSE */
23 /* Classes bearing per-CPU data */
25 #define VDC_MSR 3 /* Model-specific registers */
28 #define VDC_VMM_ARCH 6 /* Arch-specific VMM state (VMX/SVM) */
31 /* Classes for system-wide devices */
32 #define VDC_IOAPIC 7 /* bhyve IO-APIC */
37 #define VDC_RTC 12 /* IBM PC Real Time Clock */
39 #define VDC_VMM_TIME 13 /* Time-related VMM data */
48 * Generic field encoding for 64-bit (or smaller) data which are identified by a
49 * 32-bit (or smaller) name.
[all …]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmach_mp_startup.c41 * Useful for disabling MP bring-up for an MP capable kernel
47 * Init CPU info - get CPU type info for processor_info system call.
52 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info()
53 int cpuid = cp->cpu_id; in init_cpu_info()
56 cp->cpu_fpowner = NULL; /* not used for V9 */ in init_cpu_info()
59 * Get clock-frequency property from cpunodes[] for the CPU. in init_cpu_info()
61 pi->pi_clock = (cpunode->clock_freq + 500000) / 1000000; in init_cpu_info()
64 * Current frequency in Hz. in init_cpu_info()
66 cp->cpu_curr_clock = cpunode->clock_freq; in init_cpu_info()
73 (void) strcpy(pi->pi_processor_type, "sparcv9"); in init_cpu_info()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dtimestamp.c42 #include <sys/clock.h>
61 * ------------------------------------------------
63 * The Pentium family, like many chip architectures, has a high-resolution
85 * only supports writing the low 32-bits of TSC, making it impractical
97 * In the absence of time-of-day clock adjustments, gethrtime() must stay in
99 * cannot drive its time-of-day source from TSC, and yet they must somehow be
101 * is called once per second from the interrupt which drives time-of-day.
115 * compiler to emit code that "optimized" away the while-loops below. The
139 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \
145 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \
[all …]
H A Dmp_machdep.c26 * Copyright (c) 2009-2010, Intel Corporation.
39 #include <sys/clock.h>
71 #define OFFSETOF(s, m) (size_t)(&(((s *)0)->m))
203 * If non-zero, idle cpus will become "halted" when there's
210 * If non-zero, idle cpus will use mwait if available to halt instead of hlt.
219 * If non-zero, idle cpus will not use power saving Deep C-States idle loop.
223 * Non-power saving idle loop and wakeup pointers.
246 * Hyper-threading is SMT in pg_plat_hw_shared()
274 if (cpupm_domain_id(cp, CPUPM_DTYPE_ACTIVE) != (id_t)-1) in pg_plat_hw_shared()
279 if (cpupm_domain_id(cp, CPUPM_DTYPE_IDLE) != (id_t)-1) in pg_plat_hw_shared()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dhardclk.c31 #include <sys/clock.h>
79 * first call is also before /etc/system is read.
82 * has not been tuned via /etc/system.
104 * See the comments in clock.h for a full description of in setcpudelay()
109 nsec_scale = (uint_t)(((u_longlong_t)NANOSEC << (32 - nsec_shift)) / in setcpudelay()
113 * scaled_clock_mhz is a more accurated (ie not rounded-off) in setcpudelay()
125 * Pre-calculate number of sticks per usec for drv_usecwait. in setcpudelay()
127 sticks_per_usec = MAX((sys_tick_freq + (MICROSEC - 1)) / MICROSEC, 1); in setcpudelay()
130 cmn_err(CE_WARN, "invalid system frequency"); in setcpudelay()
227 * can be exported to platform-independent clock routines
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachclock.h34 * Macro to clear the NPT (non-privileged trap) bit in the %tick/%stick
35 * register. Uses %g1-%g4.
52 * - %stick does not have enough precision, it's very low frequency
53 * - %stick accesses are very slow on UltraSPARC IIe
55 * This only works because all cpus in a system change clock ratios
71 * Constants used to convert hi-res timestamps into nanoseconds
72 * (see <sys/clock.h> file for more information)
78 * At least 3.9MHz, for slower %stick-based systems.
85 * At least 62.5 MHz, for faster %tick-based systems.
95 * NOTE: the macros below assume that the various time-related variables
[all …]
/illumos-gate/usr/src/man/man3cpc/
H A Dcpc_bind_event.3cpc8 cpc_bind_event, cpc_take_sample, cpc_rele \- use CPU performance counters on
35 successfully, the system has associated performance counter context with the
36 calling \fBLWP\fR. The context allows the system to virtualize the hardware
56 enough to avoid the 32-bit counters wrapping. The events most prone to wrap are
57 those that count processor clock cycles. If such an event is of interest,
58 sampling should occur frequently so that less than 4 billion clock cycles can
88 Another process may be sampling system-wide CPU statistics. For
123 system.
137 \fB-h\fR flag of the \fBcpustat\fR or \fBcputrack\fR utilities), other events
139 user-provided routine analogous to the familiar \fBprintf\fR(3C) routine from
[all …]

123456