Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
542a086
Documentation
arch
alpha
arc
arm
arm64
avr32
blackfin
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips
mn10300
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
configs
gxio
include
arch
asm
Kbuild
asm-offsets.h
atomic.h
atomic_32.h
atomic_64.h
backtrace.h
barrier.h
bitops.h
bitops_32.h
bitops_64.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h
compat.h
current.h
delay.h
device.h
dma-mapping.h
dma.h
edac.h
elf.h
fixmap.h
ftrace.h
futex.h
hardirq.h
hardwall.h
highmem.h
homecache.h
hugetlb.h
hv_driver.h
hw_irq.h
ide.h
io.h
irq.h
irqflags.h
kexec.h
kmap_types.h
linkage.h
mmu.h
mmu_context.h
mmzone.h
module.h
page.h
pci.h
percpu.h
pgalloc.h
pgtable.h
pgtable_32.h
pgtable_64.h
processor.h
ptrace.h
sections.h
setup.h
sigframe.h
signal.h
smp.h
spinlock.h
spinlock_32.h
spinlock_64.h
spinlock_types.h
stack.h
string.h
switch_to.h
syscall.h
syscalls.h
thread_info.h
tile-desc.h
tile-desc_32.h
tile-desc_64.h
timex.h
tlb.h
tlbflush.h
topology.h
traps.h
uaccess.h
unaligned.h
unistd.h
user.h
vga.h
gxio
hv
uapi
kernel
kvm
lib
mm
Kbuild
Kconfig
Kconfig.debug
Makefile
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
arch
/
tile
/
include
/
asm
/
topology.h
Copy path
Blame
Blame
Latest commit
History
History
94 lines (79 loc) · 2.67 KB
Breadcrumbs
linux
/
arch
/
tile
/
include
/
asm
/
topology.h
Top
File metadata and controls
Code
Blame
94 lines (79 loc) · 2.67 KB
Raw
/* * Copyright 2010 Tilera Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or * NON INFRINGEMENT. See the GNU General Public License for * more details. */ #ifndef _ASM_TILE_TOPOLOGY_H #define _ASM_TILE_TOPOLOGY_H #ifdef CONFIG_NUMA #include <linux/cpumask.h> /* Mappings between logical cpu number and node number. */ extern struct cpumask node_2_cpu_mask[]; extern char cpu_2_node[]; /* Returns the number of the node containing CPU 'cpu'. */ static inline int cpu_to_node(int cpu) { return cpu_2_node[cpu]; } /* * Returns the number of the node containing Node 'node'. * This architecture is flat, so it is a pretty simple function! */ #define parent_node(node) (node) /* Returns a bitmask of CPUs on Node 'node'. */ static inline const struct cpumask *cpumask_of_node(int node) { return &node_2_cpu_mask[node]; } /* For now, use numa node -1 for global allocation. */ #define pcibus_to_node(bus) ((void)(bus), -1) /* * TILE architecture has many cores integrated in one processor, so we need * setup bigger balance_interval for both CPU/NODE scheduling domains to * reduce process scheduling costs. */ /* sched_domains SD_CPU_INIT for TILE architecture */ #define SD_CPU_INIT (struct sched_domain) { \ .min_interval = 4, \ .max_interval = 128, \ .busy_factor = 64, \ .imbalance_pct = 125, \ .cache_nice_tries = 1, \ .busy_idx = 2, \ .idle_idx = 1, \ .newidle_idx = 0, \ .wake_idx = 0, \ .forkexec_idx = 0, \ \ .flags = 1*SD_LOAD_BALANCE \ | 1*SD_BALANCE_NEWIDLE \ | 1*SD_BALANCE_EXEC \ | 1*SD_BALANCE_FORK \ | 0*SD_BALANCE_WAKE \ | 0*SD_WAKE_AFFINE \ | 0*SD_SHARE_CPUPOWER \ | 0*SD_SHARE_PKG_RESOURCES \ | 0*SD_SERIALIZE \ , \ .last_balance = jiffies, \ .balance_interval = 32, \ } /* By definition, we create nodes based on online memory. */ #define node_has_online_mem(nid) 1 #endif /* CONFIG_NUMA */ #include <asm-generic/topology.h> #ifdef CONFIG_SMP #define topology_physical_package_id(cpu) ((void)(cpu), 0) #define topology_core_id(cpu) (cpu) #define topology_core_cpumask(cpu) ((void)(cpu), cpu_online_mask) #define topology_thread_cpumask(cpu) cpumask_of(cpu) #endif #endif /* _ASM_TILE_TOPOLOGY_H */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
You can’t perform that action at this time.