mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
[PATCH] x86_64: inline function prefix with __always_inline in vsyscall
In vsyscall function do_vgettimeofday(), some functions are declared as inlined, which is a hint for gcc to compile the function inlined but it not forced. Sometimes compiler does not compile the function as inlined, so here inline is replaced by __always_inline prefix. It does not happen in gcc compiler actually, but it possibly happens. Signed-off-by: bibo mao <bibo.mao@intel.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
44b940c299
commit
cde227afe6
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ static inline int write_tryseqlock(seqlock_t *sl)
|
|||
}
|
||||
|
||||
/* Start of read calculation -- fetch last complete writer token */
|
||||
static inline unsigned read_seqbegin(const seqlock_t *sl)
|
||||
static __always_inline unsigned read_seqbegin(const seqlock_t *sl)
|
||||
{
|
||||
unsigned ret = sl->sequence;
|
||||
smp_rmb();
|
||||
|
@ -88,7 +88,7 @@ static inline unsigned read_seqbegin(const seqlock_t *sl)
|
|||
*
|
||||
* Using xor saves one conditional branch.
|
||||
*/
|
||||
static inline int read_seqretry(const seqlock_t *sl, unsigned iv)
|
||||
static __always_inline int read_seqretry(const seqlock_t *sl, unsigned iv)
|
||||
{
|
||||
smp_rmb();
|
||||
return (iv & 1) | (sl->sequence ^ iv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue