From: Joel Porquet <joel@porquet.org> To: arnd@arndb.de, linux@armlinux.org.uk Cc: linux-arch@vger.kernel.org, Joel Porquet <joel@porquet.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] make asm-generic/futex.h usable for more arch ports Date: Sun, 9 Oct 2016 17:03:06 -0700 [thread overview] Message-ID: <20161010000308.13212-1-joel@porquet.org> (raw) Hi all, I've had a patch on my shelf for a couple of years, from when I ported Linux on a new processor architecture for an academic project, and thought I could send it and let you decide if it's worth taking or not. During my port, I basically modified the generic header "asm-generic/futex.h" and made it into a more generic version so that I could include it in my code and only redefine the necessary arch-specific bits. Right now, most of the arch ports redefine their own "asm/futex.h" completely although, for example for "futex_atomic_op_inuser()", they often share the exact same preamble and epilogue and could benefit from some code refactoring. My (short) series is made of two patches: 1/ refactoring "asm-generic/futex.h" in order to make the arch-specific routines into overload-able macros that arch ports can redefine when required, 2/ an example of how to use this refactoring with the ARM port. Let me know what you think. Cheers, Joël Joel Porquet (2): asm-generic/futex.h: code refactoring arm: futex: Use asm-generic/futex.h instead of redefining the entire header arch/arm/include/asm/futex.h | 203 +++++++++++++++++---------------------- include/asm-generic/futex.h | 219 ++++++++++++++++++++++--------------------- 2 files changed, 196 insertions(+), 226 deletions(-) -- 2.10.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Joel Porquet <joel@porquet.org> To: arnd@arndb.de, linux@armlinux.org.uk Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joel Porquet <joel@porquet.org> Subject: [PATCH 0/2] make asm-generic/futex.h usable for more arch ports Date: Sun, 9 Oct 2016 17:03:06 -0700 [thread overview] Message-ID: <20161010000308.13212-1-joel@porquet.org> (raw) Message-ID: <20161010000306.8uwGDBP_Rb6pRj390XcLX3PsE5WSj5m1w-9ZveaiTEQ@z> (raw) Hi all, I've had a patch on my shelf for a couple of years, from when I ported Linux on a new processor architecture for an academic project, and thought I could send it and let you decide if it's worth taking or not. During my port, I basically modified the generic header "asm-generic/futex.h" and made it into a more generic version so that I could include it in my code and only redefine the necessary arch-specific bits. Right now, most of the arch ports redefine their own "asm/futex.h" completely although, for example for "futex_atomic_op_inuser()", they often share the exact same preamble and epilogue and could benefit from some code refactoring. My (short) series is made of two patches: 1/ refactoring "asm-generic/futex.h" in order to make the arch-specific routines into overload-able macros that arch ports can redefine when required, 2/ an example of how to use this refactoring with the ARM port. Let me know what you think. Cheers, Joël Joel Porquet (2): asm-generic/futex.h: code refactoring arm: futex: Use asm-generic/futex.h instead of redefining the entire header arch/arm/include/asm/futex.h | 203 +++++++++++++++++---------------------- include/asm-generic/futex.h | 219 ++++++++++++++++++++++--------------------- 2 files changed, 196 insertions(+), 226 deletions(-) -- 2.10.0
next reply other threads:[~2016-10-10 0:03 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-10-10 0:03 Joel Porquet [this message] 2016-10-10 0:03 ` [PATCH 0/2] make asm-generic/futex.h usable for more arch ports Joel Porquet 2016-10-10 0:03 ` [PATCH 1/2] asm-generic/futex.h: code refactoring Joel Porquet 2016-10-10 0:03 ` Joel Porquet 2016-10-10 0:03 ` [PATCH 2/2] arm: futex: Use asm-generic/futex.h instead of redefining the entire header Joel Porquet 2016-10-10 0:03 ` Joel Porquet
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20161010000308.13212-1-joel@porquet.org \ --to=joel@porquet.org \ --cc=arnd@arndb.de \ --cc=linux-arch@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).