linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/4] arm: Moving thread_info into task_struct
@ 2018-06-18 15:30 Zubin Mithra
  2018-06-18 15:30 ` [RFC v2 1/4] arm: Store address of thread_info in sp^ Zubin Mithra
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Zubin Mithra @ 2018-06-18 15:30 UTC (permalink / raw)
  To: linux-arm-kernel

These are a set of preparatory patches for moving the thread_info
into task_struct for ARM. The patches that perform that actual move
are not implemented yet.

These patches have only been tested on QEMU using the following boards.
- versatilepb
- vexpress-a9

[v2 changes]
- Add a patch that stores thread_info in sp^

Zubin Mithra (4):
  arm: Store address of thread_info in sp^
  arm: factor out current_stack_pointer
  arm: make cpu a percpu variable
  arm: add refcounting for task stacks

 arch/arm/include/asm/assembler.h     | 27 ++++++++++++++++++++++-----
 arch/arm/include/asm/percpu.h        |  2 ++
 arch/arm/include/asm/smp.h           | 11 ++++++++++-
 arch/arm/include/asm/stack_pointer.h |  9 +++++++++
 arch/arm/include/asm/switch_to.h     | 11 +++++++++++
 arch/arm/include/asm/thread_info.h   | 19 ++++++++++++-------
 arch/arm/kernel/entry-armv.S         |  5 ++++-
 arch/arm/kernel/entry-common.S       |  2 ++
 arch/arm/kernel/head-common.S        |  2 ++
 arch/arm/kernel/head.S               |  1 +
 arch/arm/kernel/process.c            | 21 +++++++++++++++------
 arch/arm/kernel/return_address.c     |  1 +
 arch/arm/kernel/setup.c              |  2 +-
 arch/arm/kernel/smp.c                | 13 +++++++++++--
 arch/arm/kernel/stacktrace.c         |  8 ++++++++
 arch/arm/kernel/topology.c           |  2 ++
 arch/arm/kernel/traps.c              | 13 +++++++++++--
 arch/arm/kernel/unwind.c             |  1 +
 18 files changed, 125 insertions(+), 25 deletions(-)
 create mode 100644 arch/arm/include/asm/stack_pointer.h

-- 
2.18.0.rc1.244.gcf134e6275-goog

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

end of thread, other threads:[~2018-06-26  9:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 15:30 [RFC v2 0/4] arm: Moving thread_info into task_struct Zubin Mithra
2018-06-18 15:30 ` [RFC v2 1/4] arm: Store address of thread_info in sp^ Zubin Mithra
2018-06-26  9:10   ` Ard Biesheuvel
2018-06-26  9:24   ` Russell King - ARM Linux
2018-06-18 15:30 ` [RFC v2 2/4] arm: factor out current_stack_pointer Zubin Mithra
2018-06-18 15:30 ` [RFC v2 3/4] arm: make cpu a percpu variable Zubin Mithra
2018-06-18 15:30 ` [RFC v2 4/4] arm: add refcounting for task stacks Zubin Mithra
2018-06-26  9:27   ` Russell King - ARM Linux
2018-06-26  9:14 ` [RFC v2 0/4] arm: Moving thread_info into task_struct Russell King - ARM Linux

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).