kern_tc.c (62454) | kern_tc.c (62573) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $FreeBSD: head/sys/kern/kern_tc.c 62454 2000-07-03 09:35:31Z phk $ | 9 * $FreeBSD: head/sys/kern/kern_tc.c 62573 2000-07-04 11:25:35Z phk $ |
10 */ 11 12#include "opt_ntp.h" 13 14#include <sys/param.h> 15#include <sys/timetc.h> 16#include <sys/malloc.h> 17#include <sys/kernel.h> --- 379 unchanged lines hidden (view full) --- 397 tc->tc_nanotime.tv_sec++; 398 } 399 time_second = tc->tc_microtime.tv_sec = tc->tc_nanotime.tv_sec; 400 401 timecounter = tc; 402} 403 404static int | 10 */ 11 12#include "opt_ntp.h" 13 14#include <sys/param.h> 15#include <sys/timetc.h> 16#include <sys/malloc.h> 17#include <sys/kernel.h> --- 379 unchanged lines hidden (view full) --- 397 tc->tc_nanotime.tv_sec++; 398 } 399 time_second = tc->tc_microtime.tv_sec = tc->tc_nanotime.tv_sec; 400 401 timecounter = tc; 402} 403 404static int |
405sysctl_kern_timecounter_hardware (SYSCTL_HANDLER_ARGS) | 405sysctl_kern_timecounter_hardware(SYSCTL_HANDLER_ARGS) |
406{ 407 char newname[32]; 408 struct timecounter *newtc, *tc; 409 int error; 410 411 tc = timecounter->tc_tweak; 412 strncpy(newname, tc->tc_name, sizeof(newname)); 413 error = sysctl_handle_string(oidp, &newname[0], sizeof(newname), req); --- 168 unchanged lines hidden --- | 406{ 407 char newname[32]; 408 struct timecounter *newtc, *tc; 409 int error; 410 411 tc = timecounter->tc_tweak; 412 strncpy(newname, tc->tc_name, sizeof(newname)); 413 error = sysctl_handle_string(oidp, &newname[0], sizeof(newname), req); --- 168 unchanged lines hidden --- |