linux-mips
[Top] [All Lists]

sys32_sched_getaffinity

To: linux-mips@linux-mips.org
Subject: sys32_sched_getaffinity
From: Pavel Kiryukhin <vksavl@cityline.ru>
Date: Mon, 19 Jan 2004 22:55:48 +0300
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: Pavel Kiryukhin <vksavl@cityline.ru>
Sender: linux-mips-bounce@linux-mips.org
Hi,

could anybody give some comments on the following code in 2.4.x -
2.6.1.

sys_sched_getaffinity [kernel/sched.c] on success returns the size of
cpumask_t, which is obviously positive value.

while

sys32_sched_getaffinity [arch/mips/kernel/linux32.c] expect 0 as
successful return from sys_sched_getaffinity.

Would
  if (ret > 0) {
be more correct than
  if (ret == 0) {
in sys32_sched_getaffinity?
-- 
Best regards,
 Pavel Kiryukhin                          mailto:vksavl@cityline.ru


<Prev in Thread] Current Thread [Next in Thread>