提交 5f420c5b 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] oprofile: dont access lowcore

The external interrupt parameter is passed as function call parameter.
No need to access lowcore.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 fcdd65b0
...@@ -675,18 +675,11 @@ int hwsampler_activate(unsigned int cpu) ...@@ -675,18 +675,11 @@ int hwsampler_activate(unsigned int cpu)
static void hws_ext_handler(unsigned int ext_int_code, static void hws_ext_handler(unsigned int ext_int_code,
unsigned int param32, unsigned long param64) unsigned int param32, unsigned long param64)
{ {
int cpu;
struct hws_cpu_buffer *cb; struct hws_cpu_buffer *cb;
kstat_cpu(smp_processor_id()).irqs[EXTINT_CPM]++; kstat_cpu(smp_processor_id()).irqs[EXTINT_CPM]++;
cpu = smp_processor_id(); cb = &__get_cpu_var(sampler_cpu_buffer);
cb = &per_cpu(sampler_cpu_buffer, cpu); atomic_xchg(&cb->ext_params, atomic_read(&cb->ext_params) | param32);
atomic_xchg(
&cb->ext_params,
atomic_read(&cb->ext_params)
| S390_lowcore.ext_params);
if (hws_wq) if (hws_wq)
queue_work(hws_wq, &cb->worker); queue_work(hws_wq, &cb->worker);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册