From: Linus Torvalds <torvalds@osdl.org>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cputime_t patches broke RLIMIT_CPU
Date: Wed, 19 Jan 2005 16:47:44 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0501191642230.8178@ppc970.osdl.org> (raw)
In-Reply-To: <200501200026.j0K0QFst021029@magilla.sf.frob.com>
On Wed, 19 Jan 2005, Roland McGrath wrote:
>
> Yes, that's how it was done before. The patch I just posted was intended
> to fix the apparent typo without getting any deeper. Below is an untested
> alternate patch to restore the old behavior under the new macro regime.
Thanks, this one looks good. I have this nagging feeling that the test for
"every second" should be doable by using a multiply (ie do a
secs_to_cputime(secs) and see if it's smaller than "total - cputime")
rather than doing the divide that is implied by "cputime_to_secs()", but I
can't really bring myself to care, and if anything, that test for "did we
go into the next whole second" really is pretty obscure anyway.
So I can't see anything wrong with this. Anybody else? Going, going..
Linus "almost gone" Torvalds
prev parent reply other threads:[~2005-01-20 0:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 20:54 Roland McGrath
2005-01-20 0:09 ` Linus Torvalds
2005-01-20 0:26 ` Roland McGrath
2005-01-20 0:47 ` Linus Torvalds [this message]
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=Pine.LNX.4.58.0501191642230.8178@ppc970.osdl.org \
--to=torvalds@osdl.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®