1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

fix linux_times() to take into account linux's value of CLK_TCK on the alpha.

Previously, results were off by a factor of 10

Tested by: Yoriaki FUJIMORI <fujimori@grafin.fujimori.cache.waseda.ac.jp>
This commit is contained in:
Andrew Gallatin 2001-03-23 19:22:21 +00:00
parent 2da24fa6e9
commit 6d4aa00ac1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74701

View File

@ -640,7 +640,12 @@ struct linux_times_argv {
long tms_cstime;
};
#ifdef __alpha__
#define CLK_TCK 1024 /* Linux uses 1024 on alpha */
#else
#define CLK_TCK 100 /* Linux uses 100 */
#endif
#define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK))
int