提交 5ef6504e 编写于 作者: D Denys Vlasenko 提交者: Greg Kroah-Hartman

tty: Deinline __ldsem_down_write_nested, save 128 bytes

This function compiles to 491 bytes of machine code.
Signed-off-by: NDenys Vlasenko <dvlasenk@redhat.com>
CC: Jiri Slaby <jslaby@suse.com>
CC: linux-serial@vger.kernel.org
Reviewed-by: NPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fc0285f2
...@@ -338,7 +338,7 @@ static int __ldsem_down_read_nested(struct ld_semaphore *sem, ...@@ -338,7 +338,7 @@ static int __ldsem_down_read_nested(struct ld_semaphore *sem,
return 1; return 1;
} }
static inline int __ldsem_down_write_nested(struct ld_semaphore *sem, static int __ldsem_down_write_nested(struct ld_semaphore *sem,
int subclass, long timeout) int subclass, long timeout)
{ {
long count; long count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册