Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1214043

Re: [PATCH 2/3] timer: Check thread timers only when there are active thread timers

From "George Spelvin" <linux@horizon.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] timer: Check thread timers only when there are active thread timers
Date 2015-08-26 19:10 +0200
Message-ID <q1Mn0-3z4-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


-	check_thread_timers(tsk, &firing);
+	if (!task_cputime_zero(&tsk->cputime_expires))
+		check_thread_timers(tsk, &firing);

Sincere question; I'm not certain myself: would it make more sense to put
this shortcut into check_thread_timers()?

It seems more like an optimization of that function than something the
caller needs to know about.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/3] timer: Check thread timers only when there are active thread timers "George Spelvin" <linux@horizon.com> - 2015-08-26 19:10 +0200
  Re: [PATCH 2/3] timer: Check thread timers only when there are  active thread timers Jason Low <jason.low2@hp.com> - 2015-08-26 19:50 +0200

csiph-web