linux-mips
[Top] [All Lists]

Re: sys32_sched_getaffinity

To: Pavel Kiryukhin <vksavl@cityline.ru>
Subject: Re: sys32_sched_getaffinity
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 20 Jan 2004 01:27:22 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1852455000.20040119225548@cityline.ru>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1852455000.20040119225548@cityline.ru>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Mon, Jan 19, 2004 at 10:55:48PM +0300, Pavel Kiryukhin wrote:

> 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.

Wrong question.  The question should be why does the MIPS kernel not use
the generic 32-bit compatibility functions?  It now does, I just changed
that.

  Ralf

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