[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1376687844-19857-1-git-send-email-andi@firstfloor.org>
Date: Fri, 16 Aug 2013 14:17:18 -0700
From: Andi Kleen <andi@...stfloor.org>
To: linux-kernel@...r.kernel.org
Cc: x86@...nel.org, peterz@...radead.org, akpm@...ux-foundation.org
Subject: Improve preempt-scheduling and x86 user access v3
Various optimizations related to CONFIG_PREEMPT_VOLUNTARY
and x86 uaccess
- Optimize copy_*_inatomic on x86-64 to handle 1-8 bytes
without string instructions
- Inline might_sleep and other preempt code
to optimize various preemption paths
This costs about 10k text size, but generates far better code
with less unnecessary function calls.
This patch kit is an attempt to get us back to sane code,
mostly by doing proper inlining and doing sleep checks in the right
place. Unfortunately I had to add one tree sweep to avoid an nasty
include loop.
Unfortunately some of the inlining requires a tree sweep
for moving might_sleep and friends to sched.h
v2: Now completely remove reschedule checks for uaccess functions.
v3: Drop unnecessary changes (thanks Michael).
Now it only optimized copy_*_inatomic and inlines might_sleep()
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists