From owner-p4-projects@FreeBSD.ORG Tue Jul 25 11:03:11 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4CBF116A4E8; Tue, 25 Jul 2006 11:03:11 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29DC216A4DF for ; Tue, 25 Jul 2006 11:03:11 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4C3F43D45 for ; Tue, 25 Jul 2006 11:03:10 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6PB3ACU038988 for ; Tue, 25 Jul 2006 11:03:10 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6PB3Atf038985 for perforce@freebsd.org; Tue, 25 Jul 2006 11:03:10 GMT (envelope-from rdivacky@FreeBSD.org) Date: Tue, 25 Jul 2006 11:03:10 GMT Message-Id: <200607251103.k6PB3Atf038985@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 102363 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 11:03:11 -0000 http://perforce.freebsd.org/chv.cgi?CH=102363 Change 102363 by rdivacky@rdivacky_witten on 2006/07/25 11:02:43 Introduce timer_* functions. These are implemented just as wrappers around ktimer_*. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_time.c#2 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#11 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_dummy.c#7 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_time.c#2 (text+ko) ==== @@ -201,3 +201,34 @@ return 0; } + +/* copied from kern/kern_time.c */ +int +linux_timer_create(struct thread *td, struct linux_timer_create_args *args) +{ + return ktimer_create(td, (struct ktimer_create_args *) args); +} + +int +linux_timer_settime(struct thread *td, struct linux_timer_settime_args *args) +{ + return ktimer_settime(td, (struct ktimer_settime_args *) args); +} + +int +linux_timer_gettime(struct thread *td, struct linux_timer_gettime_args *args) +{ + return ktimer_gettime(td, (struct ktimer_gettime_args *) args); +} + +int +linux_timer_getoverrun(struct thread *td, struct linux_timer_getoverrun_args *args) +{ + return ktimer_getoverrun(td, (struct ktimer_getoverrun_args *) args); +} + +int +linux_timer_delete(struct thread *td, struct linux_timer_delete_args *args) +{ + return ktimer_delete(td, (struct ktimer_delete_args *) args); +} ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#11 (text+ko) ==== @@ -814,4 +814,5 @@ #define LINUX_CLOCK_REALTIME_HR 4 #define LINUX_CLOCK_MONOTONIC_HR 5 +typedef int l_timer_t; #endif /* !_I386_LINUX_LINUX_H_ */ ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_dummy.c#7 (text+ko) ==== @@ -73,11 +73,6 @@ DUMMY(epoll_ctl); DUMMY(epoll_wait); DUMMY(remap_file_pages); -DUMMY(timer_create); -DUMMY(timer_settime); -DUMMY(timer_gettime); -DUMMY(timer_getoverrun); -DUMMY(timer_delete); DUMMY(statfs64); DUMMY(fstatfs64); DUMMY(tgkill);