From: Manfred Spraul Date: Mon, 8 Jul 2013 23:01:25 +0000 (-0700) Subject: ipc/sem.c: replace shared sem_otime with per-semaphore value X-Git-Tag: v3.11-rc1~67^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12e1e50e47e0900dbbf52237b7e171f4f15ea1e;p=pandora-kernel.git ipc/sem.c: replace shared sem_otime with per-semaphore value sem_otime contains the time of the last semaphore operation that completed successfully. Every operation updates this value, thus access from multiple cpus can cause thrashing. Therefore the patch replaces the variable with a per-semaphore variable. The per-array sem_otime is only calculated when required. No performance improvement on a single-socket i3 - only important for larger systems. Signed-off-by: Manfred Spraul Cc: Rik van Riel Cc: Davidlohr Bueso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed