* [PATCH/RFC] s390/kernel: use stnsm instead of stosm
@ 2014-12-16 9:30 Christian Borntraeger
2014-12-16 9:31 ` Christian Borntraeger
0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2014-12-16 9:30 UTC (permalink / raw)
To: Paolo Bonzini
Cc: KVM, Alexander Graf, Cornelia Huck, Jens Freimann, linux-s390,
heiko.carstens, schwidefsky, Christian Borntraeger
At least on z196 stnsm is faster than stosm.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
arch/s390/include/asm/irqflags.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/include/asm/irqflags.h b/arch/s390/include/asm/irqflags.h
index 37b9091..16aa0c7 100644
--- a/arch/s390/include/asm/irqflags.h
+++ b/arch/s390/include/asm/irqflags.h
@@ -36,7 +36,7 @@ static inline notrace void __arch_local_irq_ssm(unsigned long flags)
static inline notrace unsigned long arch_local_save_flags(void)
{
- return __arch_local_irq_stosm(0x00);
+ return __arch_local_irq_stnsm(0xff);
}
static inline notrace unsigned long arch_local_irq_save(void)
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH/RFC] s390/kernel: use stnsm instead of stosm
2014-12-16 9:30 [PATCH/RFC] s390/kernel: use stnsm instead of stosm Christian Borntraeger
@ 2014-12-16 9:31 ` Christian Borntraeger
2014-12-16 9:32 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2014-12-16 9:31 UTC (permalink / raw)
To: Paolo Bonzini
Cc: KVM, Alexander Graf, Cornelia Huck, Jens Freimann, linux-s390,
heiko.carstens, schwidefsky
Paolo,
sorry, should have only go to Martin and Heiko.
Nothing to worry about from your side. :-)
Am 16.12.2014 um 10:30 schrieb Christian Borntraeger:
> At least on z196 stnsm is faster than stosm.
>
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
> arch/s390/include/asm/irqflags.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/s390/include/asm/irqflags.h b/arch/s390/include/asm/irqflags.h
> index 37b9091..16aa0c7 100644
> --- a/arch/s390/include/asm/irqflags.h
> +++ b/arch/s390/include/asm/irqflags.h
> @@ -36,7 +36,7 @@ static inline notrace void __arch_local_irq_ssm(unsigned long flags)
>
> static inline notrace unsigned long arch_local_save_flags(void)
> {
> - return __arch_local_irq_stosm(0x00);
> + return __arch_local_irq_stnsm(0xff);
> }
>
> static inline notrace unsigned long arch_local_irq_save(void)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH/RFC] s390/kernel: use stnsm instead of stosm
2014-12-16 9:31 ` Christian Borntraeger
@ 2014-12-16 9:32 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2014-12-16 9:32 UTC (permalink / raw)
To: Christian Borntraeger
Cc: KVM, Alexander Graf, Cornelia Huck, Jens Freimann, linux-s390,
heiko.carstens, schwidefsky
On 16/12/2014 10:31, Christian Borntraeger wrote:
> Paolo,
>
>
> sorry, should have only go to Martin and Heiko.
> Nothing to worry about from your side. :-)
No problem, it's always fun to learn new s390 instructions. :)
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-16 9:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 9:30 [PATCH/RFC] s390/kernel: use stnsm instead of stosm Christian Borntraeger
2014-12-16 9:31 ` Christian Borntraeger
2014-12-16 9:32 ` Paolo Bonzini
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).