From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 22 Feb 2012 23:15:50 +0100 Subject: [U-Boot] [PATCH 1/2] openrisc/bitops: add hweightX defines In-Reply-To: <20120222171502.GA14563@chokladfabriken.org> References: <1329930610-14474-1-git-send-email-stefan.kristiansson@saunalahti.fi> <20120222171502.GA14563@chokladfabriken.org> Message-ID: <201202222315.51042.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > On Wed, Feb 22, 2012 at 07:10:09PM +0200, Stefan Kristiansson wrote: > > Signed-off-by: Stefan Kristiansson > > --- > > > > arch/openrisc/include/asm/bitops.h | 4 ++++ > > 1 files changed, 4 insertions(+), 0 deletions(-) > > > > diff --git a/arch/openrisc/include/asm/bitops.h > > b/arch/openrisc/include/asm/bitops.h index c001a5d..c76a409 100644 > > --- a/arch/openrisc/include/asm/bitops.h > > +++ b/arch/openrisc/include/asm/bitops.h > > @@ -25,4 +25,8 @@ > > > > #define PLATFORM_FFS > > #include > > > > +#define hweight32(x) generic_hweight32(x) > > +#define hweight16(x) generic_hweight16(x) > > +#define hweight8(x) generic_hweight8(x) > > + > > > > #endif /* __ASM_GENERIC_BITOPS_H */ > > Sorry, screwed up when I format-patched this, > there is no part 2 to it. > Hey, looks like get_tbclk() and get_ticks() looks all the same just about everywhere. What about introducing a weak alias for these functions so in case weird platform pops up, these can be overridden. M