public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/8] printk: Make it usable on nohz CPUs v2
@ 2012-10-20 16:22 Frederic Weisbecker
  2012-10-20 16:22 ` [RFC PATCH 1/8] irq_work: Move irq_work_raise() declaration/default definition to arch headers Frederic Weisbecker
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Frederic Weisbecker @ 2012-10-20 16:22 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Peter Zijlstra, Thomas Gleixner, Ingo Molnar,
	Andrew Morton, Steven Rostedt, Paul Gortmaker

Hi,

So the design is not quite the same here. Instead of using the ad hoc
printk_tick() in periodic mode and irq_work on nohz mode, printk
is now always using irq_work.

In turn, irq_work subsystem is able to let enqueuers choose between IPI
or lazy tick hook to execute works, and that in order to avoid IPI storm
when we have lots of enqueuing of non-urgent works like klogd wakeup
in short period of time so this keeps the old printk_tick behaviour.

It also teaches irq_work to handle nohz mode.

Warning: only compile tested in x86 for now.

Frederic Weisbecker (8):
  irq_work: Move irq_work_raise() declaration/default definition to
    arch headers
  irq_work: Let the arch tell us about self-IPI support
  x86: Implement arch_irq_work_has_ipi()
  nohz: Add API to check tick state
  irq_work: Make self-IPIs optable
  irq_work: Handle queuing without IPI support in dyntick idle mode
  irq_work: Remove CONFIG_HAVE_IRQ_WORK
  printk: Wake up klogd using irq_work

 arch/alpha/Kconfig                           |    1 -
 arch/alpha/include/asm/irq_work.h            |    9 +++++
 arch/alpha/kernel/time.c                     |    2 +-
 arch/arm/Kconfig                             |    1 -
 arch/arm/include/asm/irq_work.h              |    1 +
 arch/arm64/Kconfig                           |    1 -
 arch/arm64/include/asm/irq_work.h            |    1 +
 arch/blackfin/Kconfig                        |    1 -
 arch/blackfin/include/asm/irq_work.h         |    1 +
 arch/frv/Kconfig                             |    1 -
 arch/frv/include/asm/irq_work.h              |    1 +
 arch/hexagon/Kconfig                         |    1 -
 arch/hexagon/include/asm/irq_work.h          |    1 +
 arch/mips/Kconfig                            |    1 -
 arch/mips/include/asm/irq_work.h             |    1 +
 arch/parisc/Kconfig                          |    1 -
 arch/parisc/include/asm/irq_work.h           |    1 +
 arch/powerpc/Kconfig                         |    1 -
 arch/powerpc/include/asm/irq_work.h          |    8 ++++
 arch/powerpc/kernel/time.c                   |    2 +-
 arch/s390/Kconfig                            |    1 -
 arch/s390/include/asm/irq_work.h             |    1 +
 arch/sh/Kconfig                              |    1 -
 arch/sh/include/asm/irq_work.h               |    1 +
 arch/sparc/Kconfig                           |    1 -
 arch/sparc/include/asm/irq_work.h            |    8 ++++
 arch/sparc/kernel/pcr.c                      |    2 +-
 arch/x86/Kconfig                             |    1 -
 arch/x86/include/asm/irq_work.h              |   15 ++++++++
 arch/x86/kernel/cpu/mcheck/mce.c             |    2 +-
 arch/x86/kernel/irq_work.c                   |    6 ++--
 arch/x86/kvm/pmu.c                           |    2 +-
 drivers/acpi/apei/ghes.c                     |    2 +-
 drivers/staging/iio/trigger/Kconfig          |    1 -
 drivers/staging/iio/trigger/iio-trig-sysfs.c |    2 +-
 include/asm-generic/irq_work.h               |   23 ++++++++++++
 include/linux/irq_work.h                     |    9 ++++-
 include/linux/printk.h                       |    3 --
 include/linux/tick.h                         |   17 ++++++++-
 init/Kconfig                                 |    5 +--
 kernel/events/core.c                         |    4 +-
 kernel/events/ring_buffer.c                  |    2 +-
 kernel/irq_work.c                            |   48 +++++++++++++++++++------
 kernel/printk.c                              |   14 ++++----
 kernel/time/tick-sched.c                     |    6 ++--
 kernel/timer.c                               |    1 -
 46 files changed, 156 insertions(+), 59 deletions(-)
 create mode 100644 arch/alpha/include/asm/irq_work.h
 create mode 100644 arch/arm/include/asm/irq_work.h
 create mode 100644 arch/arm64/include/asm/irq_work.h
 create mode 100644 arch/blackfin/include/asm/irq_work.h
 create mode 100644 arch/frv/include/asm/irq_work.h
 create mode 100644 arch/hexagon/include/asm/irq_work.h
 create mode 100644 arch/mips/include/asm/irq_work.h
 create mode 100644 arch/parisc/include/asm/irq_work.h
 create mode 100644 arch/powerpc/include/asm/irq_work.h
 create mode 100644 arch/s390/include/asm/irq_work.h
 create mode 100644 arch/sh/include/asm/irq_work.h
 create mode 100644 arch/sparc/include/asm/irq_work.h
 create mode 100644 arch/x86/include/asm/irq_work.h
 create mode 100644 include/asm-generic/irq_work.h

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-10-23 12:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20 16:22 [RFC PATCH 0/8] printk: Make it usable on nohz CPUs v2 Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 1/8] irq_work: Move irq_work_raise() declaration/default definition to arch headers Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 2/8] irq_work: Let the arch tell us about self-IPI support Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 3/8] x86: Implement arch_irq_work_has_ipi() Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 4/8] nohz: Add API to check tick state Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 5/8] irq_work: Make self-IPIs optable Frederic Weisbecker
2012-10-22 10:41   ` Peter Zijlstra
2012-10-23 12:34     ` Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 6/8] irq_work: Handle queuing without IPI support in dyntick idle mode Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 7/8] irq_work: Remove CONFIG_HAVE_IRQ_WORK Frederic Weisbecker
2012-10-20 16:22 ` [RFC PATCH 8/8] printk: Wake up klogd using irq_work Frederic Weisbecker
2012-10-20 16:50   ` Joe Perches
2012-10-20 17:21     ` Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox