From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 3/5] ARM64: arch_timer: add support to configure and enable event stream
Date: Thu, 29 Aug 2013 12:22:39 +0100 [thread overview]
Message-ID: <20130829112239.GE13704@arm.com> (raw)
In-Reply-To: <1377686689-30828-4-git-send-email-Sudeep.KarkadaNagesha@arm.com>
On Wed, Aug 28, 2013 at 11:44:47AM +0100, Sudeep KarkadaNagesha wrote:
> static inline u64 arch_counter_get_cntvct(void)
> diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
> index 6d4482f..530fa879 100644
> --- a/arch/arm64/include/asm/hwcap.h
> +++ b/arch/arm64/include/asm/hwcap.h
> @@ -30,6 +30,7 @@
> #define COMPAT_HWCAP_IDIVA (1 << 17)
> #define COMPAT_HWCAP_IDIVT (1 << 18)
> #define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT)
> +#define COMPAT_HWCAP_EVTSTRM (1 << 21)
>
> #ifndef __ASSEMBLY__
> /*
> @@ -37,11 +38,16 @@
> * instruction set this cpu supports.
> */
> #define ELF_HWCAP (elf_hwcap)
> -#define COMPAT_ELF_HWCAP (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
> +#ifdef CONFIG_COMPAT
> +#define COMPAT_ELF_HWCAP (compat_elf_hwcap)
> +#define COMPAT_ELF_HWCAP_DEFAULT \
> + (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
> COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\
> COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\
> COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
> COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV)
> +extern unsigned int compat_elf_hwcap;
> +#endif
I think you can move the default to the setup.c file, it's not of any
use apart from initialisation.
--
Catalin
WARNING: multiple messages have this Message-ID (diff)
From: Catalin Marinas <catalin.marinas@arm.com>
To: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>,
Will Deacon <Will.Deacon@arm.com>,
Thomas Gleixner <tglx@linutronix.de>,
Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: [PATCH v5 3/5] ARM64: arch_timer: add support to configure and enable event stream
Date: Thu, 29 Aug 2013 12:22:39 +0100 [thread overview]
Message-ID: <20130829112239.GE13704@arm.com> (raw)
In-Reply-To: <1377686689-30828-4-git-send-email-Sudeep.KarkadaNagesha@arm.com>
On Wed, Aug 28, 2013 at 11:44:47AM +0100, Sudeep KarkadaNagesha wrote:
> static inline u64 arch_counter_get_cntvct(void)
> diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
> index 6d4482f..530fa879 100644
> --- a/arch/arm64/include/asm/hwcap.h
> +++ b/arch/arm64/include/asm/hwcap.h
> @@ -30,6 +30,7 @@
> #define COMPAT_HWCAP_IDIVA (1 << 17)
> #define COMPAT_HWCAP_IDIVT (1 << 18)
> #define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT)
> +#define COMPAT_HWCAP_EVTSTRM (1 << 21)
>
> #ifndef __ASSEMBLY__
> /*
> @@ -37,11 +38,16 @@
> * instruction set this cpu supports.
> */
> #define ELF_HWCAP (elf_hwcap)
> -#define COMPAT_ELF_HWCAP (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
> +#ifdef CONFIG_COMPAT
> +#define COMPAT_ELF_HWCAP (compat_elf_hwcap)
> +#define COMPAT_ELF_HWCAP_DEFAULT \
> + (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
> COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\
> COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\
> COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
> COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV)
> +extern unsigned int compat_elf_hwcap;
> +#endif
I think you can move the default to the setup.c file, it's not of any
use apart from initialisation.
--
Catalin
next prev parent reply other threads:[~2013-08-29 11:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 10:44 [PATCH v5 0/5] ARM/ARM64 architected timer updates Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-28 10:44 ` [PATCH v5 1/5] ARM/ARM64: arch_timer: add macros for bits in control register Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-28 10:44 ` [PATCH v5 2/5] ARM: arch_timer: add support to configure and enable event stream Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-29 11:24 ` Catalin Marinas
2013-08-29 11:24 ` Catalin Marinas
2013-08-28 10:44 ` [PATCH v5 3/5] ARM64: " Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-29 11:22 ` Catalin Marinas [this message]
2013-08-29 11:22 ` Catalin Marinas
2013-08-28 10:44 ` [PATCH v5 4/5] drivers: clocksource: add support for ARM architected timer " Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-29 11:19 ` Catalin Marinas
2013-08-29 11:19 ` Catalin Marinas
2013-08-28 10:44 ` [PATCH v5 5/5] drivers: clocksource: add CPU PM notifier for ARM architected timer Sudeep KarkadaNagesha
2013-08-28 10:44 ` Sudeep KarkadaNagesha
2013-08-28 10:55 ` Sudeep KarkadaNagesha
2013-08-28 10:55 ` Sudeep KarkadaNagesha
2015-02-19 13:03 ` Venkappa Mala
2015-02-19 14:16 ` Sudeep Holla
2015-02-19 14:16 ` Sudeep Holla
2015-02-19 16:03 ` Venkappa Mala
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=20130829112239.GE13704@arm.com \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.