From b8d7c0968c095d25fded0e2dfea1a16b1fd42911 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Thu, 11 Oct 2012 12:15:45 -0400 Subject: tilegx: add optimized sched_getcpu() using TILE_COORD SPR We can discover our x,y coordinate in the core mesh with an mfspr instruction, multiply y by the core mesh width, and have the core number without needing to ask the kernel. --- ports/ChangeLog.tile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ports/ChangeLog.tile') diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index 2d19358e75..dfe5e9c60f 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,3 +1,7 @@ +2012-10-11 Chris Metcalf + + * sysdeps/unix/sysv/linux/tile/tilegx/sched_getcpu.c: New file. + 2012-10-02 Siddhesh Poyarekar * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Fix clone -- cgit 1.4.1