kern_clocksource.c (0c21a60cf61c61c3a136a803b9c7645c128c6982) kern_clocksource.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54)
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109
110static int singlemul = 0; /* Multiplier for periodic mode. */
111TUNABLE_INT("kern.eventtimer.singlemul", &singlemul);
112SYSCTL_INT(_kern_eventtimer, OID_AUTO, singlemul, CTLFLAG_RW, &singlemul,
113 0, "Multiplier for periodic mode");
114
115static u_int idletick = 0; /* Idle mode allowed. */
116TUNABLE_INT("kern.eventtimer.idletick", &idletick);
1/*-
2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109
110static int singlemul = 0; /* Multiplier for periodic mode. */
111TUNABLE_INT("kern.eventtimer.singlemul", &singlemul);
112SYSCTL_INT(_kern_eventtimer, OID_AUTO, singlemul, CTLFLAG_RW, &singlemul,
113 0, "Multiplier for periodic mode");
114
115static u_int idletick = 0; /* Idle mode allowed. */
116TUNABLE_INT("kern.eventtimer.idletick", &idletick);
117SYSCTL_INT(_kern_eventtimer, OID_AUTO, idletick, CTLFLAG_RW, &idletick,
117SYSCTL_UINT(_kern_eventtimer, OID_AUTO, idletick, CTLFLAG_RW, &idletick,
118 0, "Run periodic events when idle");
119
120static int periodic = 0; /* Periodic or one-shot mode. */
121static int want_periodic = 0; /* What mode to prefer. */
122TUNABLE_INT("kern.eventtimer.periodic", &want_periodic);
123
124struct pcpu_state {
125 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */

--- 778 unchanged lines hidden ---
118 0, "Run periodic events when idle");
119
120static int periodic = 0; /* Periodic or one-shot mode. */
121static int want_periodic = 0; /* What mode to prefer. */
122TUNABLE_INT("kern.eventtimer.periodic", &want_periodic);
123
124struct pcpu_state {
125 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */

--- 778 unchanged lines hidden ---