Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-13 Thread Thomas Gleixner
Prasad, psoda...@codeaurora.org writes: > On 2020-05-13 13:28, Thomas Gleixner wrote: >> psoda...@codeaurora.org writes: >>> It is not clear to me how to avoid #ifdef's in this case. Could you >>> please share an example here? >> >> The answer is further down already: > > I think, you are referri

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-13 Thread psodagud
On 2020-05-13 13:28, Thomas Gleixner wrote: psoda...@codeaurora.org writes: On 2020-05-06 06:28, Thomas Gleixner wrote: #ifdef CONFIG_SMP +struct timer_base timer_base_deferrable; unsigned int sysctl_timer_migration = 1; DEFINE_STATIC_KEY_FALSE(timers_migration_enabled); @@ -841,8 +842,14 @

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-13 Thread Thomas Gleixner
psoda...@codeaurora.org writes: > On 2020-05-06 06:28, Thomas Gleixner wrote: >>> #ifdef CONFIG_SMP >>> +struct timer_base timer_base_deferrable; >>> unsigned int sysctl_timer_migration = 1; >>> >>> DEFINE_STATIC_KEY_FALSE(timers_migration_enabled); >>> @@ -841,8 +842,14 @@ static inline struct

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-13 Thread psodagud
Hi Tglx, On 2020-05-06 06:28, Thomas Gleixner wrote: Prasad Sodagudi writes: To make all cpu unbound deferrable timers are scalable, introduce a common timer base which is only for cpu unbound deferrable timers to make those are indeed cpu unbound so that can be scheduled by any of non idle

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-06 Thread Thomas Gleixner
Prasad Sodagudi writes: > To make all cpu unbound deferrable timers are scalable, introduce a common > timer base which is only for cpu unbound deferrable timers to make those > are indeed cpu unbound so that can be scheduled by any of non idle cpus. > This common timer fixes scalability issue of

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-04 Thread kbuild test robot
Hi Prasad, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on tip/auto-latest tip/timers/nohz v5.7-rc4 next-20200504] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we al

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-04 Thread kbuild test robot
Hi Prasad, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on tip/auto-latest tip/timers/nohz v5.7-rc4 next-20200501] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we al

[PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-02 Thread Prasad Sodagudi
From: Joonwoo Park When a deferrable work (INIT_DEFERRABLE_WORK, etc.) is queued via queue_delayed_work() it's probably intended to run the work item on any CPU that isn't idle. However, we queue the work to run at a later time by starting a deferrable timer that binds to whatever CPU the work is