Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1693357

Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu
Date 2017-07-21 05:00 +0200
Message-ID <u5wkx-7vD-1@gated-at.bofh.it> (permalink)
References <u14wy-6ML-7@gated-at.bofh.it> <u5pM7-3kJ-21@gated-at.bofh.it> <u5waR-7qC-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Vijay Kumar <vijay.ac.kumar@oracle.com>
Date: Thu, 20 Jul 2017 21:44:24 -0500

> I had same thoughts initially but I had to go with this approach as
> scheduler_ipi is wrapped with irq_enter() and irq_exit(). Whereas POKE
> resumes the cpu in process context.
> 
> Comments in scheduler_ipi():
> 
>          * Not all reschedule IPI handlers call irq_enter/irq_exit, since
>          * traditionally all their work was done from the interrupt return
>          * path. Now that we actually do some work, we need to make sure
>          * we do call them.
>          *
>          * Some archs already do call them, luckily irq_enter/exit nest
>          * properly.
>          *
>          * Arguably we should visit all archs and update all handlers,
>          * however a fair share of IPIs are still resched only so this would
>          * somewhat pessimize the simple resched case.
>          */
>         irq_enter();
> 

I still think we should be able to fake the state such that this
direct schedule_ipi() call will work.

I could be wrong :)

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu David Miller <davem@davemloft.net> - 2017-07-20 22:00 +0200
  Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-07-21 04:50 +0200
    Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu David Miller <davem@davemloft.net> - 2017-07-21 05:00 +0200
      Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-07-21 05:40 +0200
        Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu David Miller <davem@davemloft.net> - 2017-07-21 05:50 +0200
          Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu Vijay Kumar <vijay.ac.kumar@oracle.com> - 2017-07-21 06:20 +0200

csiph-web