From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org,
a.p.zijlstra@chello.nl, paulus@samba.org, mingo@elte.hu,
acme@redhat.com, jamie.iles@picochip.com
Subject: Re: [PATCH v3 1/4] MIPS/Oprofile: extract PMU defines/helper functions for sharing
Date: Fri, 07 May 2010 00:21:49 +0800 [thread overview]
Message-ID: <1273162909.23734.4.camel@localhost> (raw)
In-Reply-To: <1273067734-4758-2-git-send-email-dengcheng.zhu@gmail.com>
Hi,
On Wed, 2010-05-05 at 21:55 +0800, Deng-Cheng Zhu wrote:
> Moving performance counter/control defines/helper functions into a single
> header file, so that software using the MIPS PMU can share the code.
>
> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
> ---
> arch/mips/include/asm/pmu.h | 244 +++++++++++++++++++++++++++++++
> arch/mips/oprofile/op_model_loongson2.c | 23 +---
> arch/mips/oprofile/op_model_mipsxx.c | 164 +---------------------
> arch/mips/oprofile/op_model_rm9000.c | 16 +--
> 4 files changed, 247 insertions(+), 200 deletions(-)
> create mode 100644 arch/mips/include/asm/pmu.h
>
> diff --git a/arch/mips/include/asm/pmu.h b/arch/mips/include/asm/pmu.h
[...]
> +
> +#ifndef __MIPS_PMU_H__
> +#define __MIPS_PMU_H__
> +
> +#if defined(CONFIG_CPU_MIPS32) || defined(CONFIG_CPU_MIPS64) || \
> + defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_SB1)
[...]
> +static int (*save_perf_irq)(void);
For we will use the save_perf_irq in the common function:
mipspmu_get_irq() of the next patch, so, we need to move the definition
of it out of the #if ... and put it before the #if:
...
+static int (*save_perf_irq)(void);
#if defined(CONFIG_CPU_MIPS32)
...
Regards,
Wu Zhangjin
next prev parent reply other threads:[~2010-05-06 16:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 13:55 [PATCH v3 0/4] MIPS performance event support v3 Deng-Cheng Zhu
2010-05-05 13:55 ` [PATCH v3 1/4] MIPS/Oprofile: extract PMU defines/helper functions for sharing Deng-Cheng Zhu
2010-05-06 16:21 ` Wu Zhangjin [this message]
2010-05-06 16:54 ` Wu Zhangjin
2010-05-07 3:12 ` Deng-Cheng Zhu
2010-05-07 3:12 ` Deng-Cheng Zhu
2010-05-05 13:55 ` [PATCH v3 2/4] MIPS: use generic atomic64 in non-64bit kernels Deng-Cheng Zhu
2010-05-05 13:55 ` [PATCH v3 3/4] MIPS: add support for software performance events Deng-Cheng Zhu
2010-05-05 13:55 ` [PATCH v3 4/4] MIPS: add support for hardware " Deng-Cheng Zhu
2010-05-05 15:18 ` Jamie Iles
2010-05-06 4:23 ` Deng-Cheng Zhu
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=1273162909.23734.4.camel@localhost \
--to=wuzhangjin@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=dengcheng.zhu@gmail.com \
--cc=jamie.iles@picochip.com \
--cc=linux-mips@linux-mips.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=ralf@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox