Date: Tue, 25 Jul 2006 11:03:10 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102363 for review Message-ID: <200607251103.k6PB3Atf038985@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607251103.k6PB3Atf038985>