From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Schwidefsky Subject: Re: [PATCH 16/21] s390: Use generic posix_types.h Date: Wed, 8 Feb 2012 10:04:45 +0100 Message-ID: <20120208100445.2e527a4e@de.ibm.com> References: <1328677745-20121-1-git-send-email-hpa@zytor.com> <1328677745-20121-17-git-send-email-hpa@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:50322 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033Ab2BHJEy (ORCPT ); Wed, 8 Feb 2012 04:04:54 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 8 Feb 2012 09:04:50 -0000 In-Reply-To: <1328677745-20121-17-git-send-email-hpa@zytor.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: "H. Peter Anvin" Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Heiko Carstens , linux390@de.ibm.com On Tue, 7 Feb 2012 21:09:00 -0800 "H. Peter Anvin" wrote: > From: "H. Peter Anvin" > > Change the s390 architecture to use . > > Signed-off-by: H. Peter Anvin > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: > --- > arch/s390/include/asm/posix_types.h | 70 +++++------------------------------ > 1 files changed, 10 insertions(+), 60 deletions(-) I carefully checked the conversion and came to the conclusion that the new type definitions are equivalent to the old ones. The code compiles fine with the patches applied and the kernel boots. What I don't like is the conversion of __FD_ZERO. The new definition creates this code sequence: 0: a7 19 00 00 lghi %r1,0 4: e3 10 20 00 00 24 stg %r1,0(%r2) a: e3 10 20 08 00 24 stg %r1,8(%r2) 10: e3 10 20 10 00 24 stg %r1,16(%r2) 16: e3 10 20 18 00 24 stg %r1,24(%r2) 1c: e3 10 20 20 00 24 stg %r1,32(%r2) 22: e3 10 20 28 00 24 stg %r1,40(%r2) 28: e3 10 20 30 00 24 stg %r1,48(%r2) 2e: e3 10 20 38 00 24 stg %r1,56(%r2) 34: e3 10 20 40 00 24 stg %r1,64(%r2) 3a: e3 10 20 48 00 24 stg %r1,72(%r2) 40: e3 10 20 50 00 24 stg %r1,80(%r2) 46: e3 10 20 58 00 24 stg %r1,88(%r2) 4c: e3 10 20 60 00 24 stg %r1,96(%r2) 52: e3 10 20 68 00 24 stg %r1,104(%r2) 58: e3 10 20 70 00 24 stg %r1,112(%r2) 5e: e3 10 20 78 00 24 stg %r1,120(%r2) the old code used to be just a single instruction: 0: d7 7f 20 00 20 00 xc 0(128,%r2),0(%r2) That is quite a difference in code length. The execution speed should be almost the same though. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.