Helge
        Please see the response below
> 
> Yes, your original code checked for the glibc version for x86_64 only.
> I intentionally removed the x86_64 dependency, since my patch is about 
> to make it possible to run this specific testcase on other architectures 
> as well (in my case for HPPA).
> So, either we could do as you say:
> 
> #elif defined(__x86_64__)
> # if __GLIBC_PREREQ(2,6)
>         return *cpu_id = sched_getcpu();
> # endif
> #elif defined(__hppa__)
> # if __GLIBC_PREREQ(2,6)
>         return *cpu_id = sched_getcpu();
> # endif
> #elif defined(__ia64__)
> # if __GLIBC_PREREQ(2,6)
>         return *cpu_id = sched_getcpu();
> # endif
> ....arm...sparc...xxx

In the glibc code I see sched_getcpu implementation only for x86_64, I 
was looking into libc 2.7, that was the reason I implemented it only for 
x86_64
  You can see that implementation under:
        sysdeps/unix/sysv/linux/sched_getcpu.c
If glibc can support other archs we can remove the condition.I still 
suggest you to add these architectures specifically rather than allowing 
all till it becomes glibc generic.
Thanks
Sharyathi

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to