ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Epiphanov Sergei <serpiph@nikiet.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] USB on 2.4.x
Date: Thu, 3 Feb 2005 11:21:52 +0300
Message-ID: <200502031121.52732.serpiph@nikiet.ru> (raw)
In-Reply-To: <4200FB6E.7050902@altlinux.com>

В сообщении от 2 Февраль 2005 19:10 Anton Farygin написал:
> Кстати, google на эту тему нашел вот что:
> http://www.ussg.iu.edu/hypermail/linux/kernel/0408.3/0119.html
>
> Посмотрите, может быть у вас в коде подобная ошибка ?

Нет, этой ошибки у меня нет (сами вычтите из первого числа второе и 
умножьте на 1000), так как я вывожу миллисекунды (а не микросекунды) в 
виде float, а в предложенном варианте:

printf("Previous value of %d timer is %ld.%ld\n", arg, o.it_value.tv_sec, 
o.it_value.tv_usec);

в виде двух длинных целых. Правильная строка:

printf("Previous value of %d timer is %08ld.%08ld\n", arg, 
o.it_value.tv_sec, o.it_value.tv_usec);

Другой вариант проверки: По таймеру выдаю 1 байт в COM-порт. Другой комп 
под DOS по кабелю принимает этот байт и сообщает, сколько времени прошло 
между двумя байтами. Под 2.4 это (29,98 - 30,02) мс., под (2.6 - 31-32) мс 
(в среднем 31,5 мс). Правда, программа довольно специфичная, поэтому 
прислать не могу. В принципе, меняются только строки обработчика SIGALRM.

-- 
С уважением, Епифанов Сергей


  reply	other threads:[~2005-02-03  8:21 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01 22:14 Andrey Brindeew
2005-02-01 22:47 ` Vitaly Lipatov
2005-02-02  2:03   ` Ivan Fedorov
2005-02-02  5:46     ` Vitaly Lipatov
2005-02-02  7:17       ` Gleb Kulikov
2005-02-02 10:27         ` Alexandre Prokoudine
2005-02-02 14:45           ` Gleb Kulikov
2005-02-02 11:45         ` iLL
2005-02-02 12:06           ` Epiphanov Sergei
2005-02-02 12:45             ` iLL
2005-02-02 13:09               ` Epiphanov Sergei
2005-02-02 13:27                 ` Anton Farygin
2005-02-02 14:47                   ` Epiphanov Sergei
2005-02-02 16:10                     ` Anton Farygin
2005-02-03  8:21                       ` Epiphanov Sergei [this message]
2005-02-03 10:58                       ` Epiphanov Sergei
2005-02-03 12:33                         ` [sisyphus] timers on 2.6.x vs 2.4.x (was: Re: USB on 2.4.x) Sergey Vlasov
2005-02-03 13:41                           ` Epiphanov Sergei
2005-02-03 12:32                       ` [sisyphus] USB on 2.4.x Epiphanov Sergei
2005-02-02 14:43             ` Gleb Kulikov
2005-02-02 22:12               ` Vitaly Lipatov
2005-02-03  7:59                 ` Gleb Kulikov
2005-02-03  9:59                   ` Vitaly Lipatov
2005-02-07 19:20             ` Serge Pavlovsky
2005-02-02 14:39           ` Gleb Kulikov
2005-02-02 15:42         ` [sisyphus] " Konstantin A. Lepikhov
2005-02-02  7:34       ` [sisyphus] Mosix (was: USB on 2.4.x) iLL
2005-02-03  5:24   ` [sisyphus] USB on 2.4.x Andrey Brindeew
2005-02-03  5:34     ` Ivan Fedorov
2005-02-03  8:21       ` Valery V. Inozemtsev
2005-02-03 13:45         ` Anton Farygin
2005-02-08 17:10   ` Maxim Tyurin
2005-02-02  6:35 ` Alex Yustasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502031121.52732.serpiph@nikiet.ru \
    --to=serpiph@nikiet.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git