linux_dsm_epyc7002/arch/ia64/include/asm
Linus Torvalds b235beea9e Clarify naming of thread info/stack allocators
We've had the thread info allocated together with the thread stack for
most architectures for a long time (since the thread_info was split off
from the task struct), but that is about to change.

But the patches that move the thread info to be off-stack (and a part of
the task struct instead) made it clear how confused the allocator and
freeing functions are.

Because the common case was that we share an allocation with the thread
stack and the thread_info, the two pointers were identical.  That
identity then meant that we would have things like

	ti = alloc_thread_info_node(tsk, node);
	...
	tsk->stack = ti;

which certainly _worked_ (since stack and thread_info have the same
value), but is rather confusing: why are we assigning a thread_info to
the stack? And if we move the thread_info away, the "confusing" code
just gets to be entirely bogus.

So remove all this confusion, and make it clear that we are doing the
stack allocation by renaming and clarifying the function names to be
about the stack.  The fact that the thread_info then shares the
allocation is an implementation detail, and not really about the
allocation itself.

This is a pure renaming and type fix: we pass in the same pointer, it's
just that we clarify what the pointer means.

The ia64 code that actually only has one single allocation (for all of
task_struct, thread_info and kernel thread stack) now looks a bit odd,
but since "tsk->stack" is actually not even used there, that oddity
doesn't matter.  It would be a separate thing to clean that up, I
intentionally left the ia64 changes as a pure brute-force renaming and
type change.

Acked-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-06-24 15:09:37 -07:00
..
native
sn ia64: Fix misspellings in comments. 2016-04-18 12:45:54 +02:00
uv
acenv.h
acpi-ext.h
acpi.h
agp.h
asm-offsets.h
asmmacro.h
atomic.h
barrier.h
bitops.h
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
clocksource.h
cpu.h
cputime.h
current.h
cyclone.h
delay.h
device.h
div64.h
dma-mapping.h
dma.h
dmi.h
early_ioremap.h
elf.h
emergency-restart.h
esi.h
fb.h
fpswa.h
ftrace.h
futex.h
gcc_intrin.h
hardirq.h
hpsim.h
hugetlb.h
hw_irq.h
idle.h
intrinsics.h
io.h ia64: define ioremap_uc() 2016-03-17 15:09:34 -07:00
iommu_table.h
iommu.h x86/cpufeature: Remove cpu_has_x2apic 2016-03-31 13:35:08 +02:00
iosapic.h
irq_regs.h
irq_remapping.h
irq.h
irqflags.h
Kbuild
kdebug.h
kexec.h
kmap_types.h
kprobes.h
kregs.h
libata-portmap.h
linkage.h
local64.h
local.h
machvec_dig_vtd.h
machvec_dig.h
machvec_hpsim.h
machvec_hpzx1_swiotlb.h
machvec_hpzx1.h
machvec_init.h
machvec_sn2.h
machvec_uv.h
machvec.h
mc146818rtc.h
mca_asm.h
mca.h
meminit.h
mman.h
mmu_context.h
mmu.h
mmzone.h
module.h
msidef.h
mutex.h
nodedata.h
numa.h
page.h
pal.h
param.h
parport.h
patch.h
pci.h
percpu.h
perfmon.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
rwsem.h locking/rwsem, ia64: Provide __down_write_killable() 2016-04-13 10:42:21 +02:00
sal.h
sections.h
segment.h
serial.h
shmparam.h
siginfo.h
signal.h
smp.h
sparsemem.h
spinlock_types.h
spinlock.h
string.h
swiotlb.h
switch_to.h
syscall.h
termios.h
thread_info.h Clarify naming of thread info/stack allocators 2016-06-24 15:09:37 -07:00
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h ia64/extable: use generic search and sort routines 2016-03-22 15:36:02 -07:00
unaligned.h
uncached.h
unistd.h [IA64] Enable preadv2 and pwritev2 syscalls for ia64 2016-03-25 14:37:32 -07:00
unwind.h
user.h
ustack.h
vga.h
xor.h