[PATCH] make use of sched_setaffinity if available

Stefan Assmann sassmann at suse.de
Tue Dec 16 12:57:23 UTC 2008


Bernhard Reutner-Fischer wrote:
> On Tue, Dec 16, 2008 at 11:04:49AM +0100, Stefan Assmann wrote:
>> Subject: make use of sched_setaffinity if available
>>
>> From: Stefan Assmann <sassmann at suse.de>
>>
>> The current implementation relies on the fact that INTERNAL_SYSCALL is defined
>> for syscall sched_setaffinity. Otherwise the syscall will be treated as
>> non-existant even if it is implemented. This patch adds a check whether the
>> syscall is available if INTERNAL_SYSCALL is not defined. This was necessary to
>> get sched_setaffinity working on ia64.
> 
> All arches should define INTERNAL_SYSCALL, could you please add this
> for ia64 instead?

Yes, can do. Any objections why this patch shouldn't be applied anyway? What's
the reason for not using the existing syscall?

  Stefan

-- 
Stefan Assmann          | SUSE LINUX Products GmbH
Software Engineer       | Maxfeldstr. 5, D-90409 Nuernberg
Mail: sassmann at suse.de  | GF: Markus Rex, HRB 16746 (AG Nuernberg)



More information about the uClibc mailing list