OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:affinity
(Results
1 - 25
of
267
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
smt_smp_affinity.sh
23
# Set
affinity
through system call sched_setaffinity
24
# get
affinity
through system call sched_getaffinity
25
# Inheritance of
Affinity
38
tst_resm TINFO "Begin: SMT/SMP
Affinity
"
46
tst_resm TINFO "End: SMT/SMP
Affinity
"
51
tst_resm TINFO "End: SMT/SMP
Affinity
"
62
tst_resm TINFO "End: SMT/SMP
Affinity
"
75
tst_resm TINFO "End: SMT/SMP
Affinity
"
84
tst_resm TINFO "End: SMT/SMP
Affinity
"
ht_affinity.c
30
pid - pid of the process whose
affinity
is desired to be set.
35
pid - pid of the process whose
affinity
is being read.
36
mask_ptr pointer to store the current
affinity
information.
46
#define AFFINITY_NAME "
affinity
"
58
tst_resm(TINFO, "Set
affinity
through system call");
67
tst_resm(TINFO, "Set test process
affinity
.");
95
tst_resm(TINFO, "Set test process
affinity
.");
156
tst_resm(TINFO, "Get
affinity
through system call");
201
tst_resm(TINFO, "Inherit
affinity
:fork failed!");
207
tst_resm(TINFO, "Inherited
affinity
from parent process")
[
all
...]
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/psci/
psci_setup.c
51
* In a system, a certain number of
affinity
instances are present at an
52
*
affinity
level. The cumulative number of instances across all levels are
54
* array. To retrieve nodes, information about the extents of each
affinity
67
* Routines for retrieving the node corresponding to an
affinity
level instance
69
* to the mpidr (key) at a particular
affinity
level. The second routine decides
70
* extents of the binary search at each
affinity
level.
93
* 'psci_aff_map' for a given
affinity
level are stored in an ascending
113
/* Right shift the mpidr to the required
affinity
level */
127
*
affinity
levels in an mpidr. It returns successfully only when the
affinity
[
all
...]
psci_afflvl_off.c
41
* The next three functions implement a handler for each supported
affinity
42
* level which is called when that
affinity
level is turned off.
100
* at this
affinity
level
113
* This function takes an array of pointers to
affinity
instance nodes in the
114
* topology tree and calls the off handler for the corresponding
affinity
135
* It's assumed that along with turning the cpu off, higher
affinity
levels will
136
* be turned off as far as possible. It traverses through all the
affinity
143
* The state of all the relevant
affinity
levels is changed prior to calling the
144
*
affinity
level specific handlers as their actions would depend upon the state
145
* the
affinity
level is about to enter
[
all
...]
psci_common.c
50
* management of
affinity
instances. Each node (aff_map_node) in the array
51
* corresponds to an
affinity
instance e.g. cluster, cpu within an mpidr
65
* This function is passed an array of pointers to
affinity
level nodes in the
67
*
affinity
level which is marked as physically powered off.
120
* This function saves the highest
affinity
level which is in OFF state. The
121
*
affinity
instance with which the level is associated is determined by the
139
* This function reads the saved highest
affinity
level which is in OFF
140
* state. The
affinity
instance with which the level is associated is determined
157
* Routine to return the maximum
affinity
level to traverse to after a cpu has
183
* Assume that this cpu was suspended and retrieve its target
affinity
[
all
...]
psci_afflvl_on.c
130
/* Cannot go beyond
affinity
level 2 in this psci imp. */
160
* This function takes an array of pointers to
affinity
instance nodes in the
161
* topology tree and calls the on handler for the corresponding
affinity
180
*
affinity
levels.
193
* its mpidr. It traverses through all the
affinity
levels performing generic,
198
* The state of all the relevant
affinity
levels is changed after calling the
199
*
affinity
level specific handlers as their actions would depend upon the state
200
* the
affinity
level is currently in.
202
* The
affinity
level specific handlers are called in descending order i.e. from
203
* the highest to the lowest
affinity
level implemented by the platform becaus
[
all
...]
psci_afflvl_suspend.c
57
* This function gets the
affinity
level till which the current cpu could be
103
* The next three functions implement a handler for each supported
affinity
104
* level which is called when that
affinity
level is about to be suspended.
151
* beyond
affinity
level 0 but one never knows what a platform might
185
* at this
affinity
level
190
* beyond
affinity
level 0 but one never knows what a
208
* This function takes an array of pointers to
affinity
instance nodes in the
209
* topology tree and calls the suspend handler for the corresponding
affinity
230
* It is assumed that along with turning the cpu off, higher
affinity
levels
231
* until the target
affinity
level will be turned off as well. It traverse
[
all
...]
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/
fvp_topology.c
37
/* We treat '255' as an invalid
affinity
instance */
43
* of 2 clusters (
affinity
1) and 4 cpus (
affinity
0) per cluster. So we define
45
* marks the absent
affinity
level instances as PSCI_AFF_ABSENT e.g. there is no
57
* is a separate array for each
affinity
level i.e. cpus and clusters. The child
69
* topology. psci queries the platform to determine how many
affinity
instances
74
* This is 'cause we are effectively asking how many
affinity
level 1 instances
75
* are implemented under
affinity
level 2 instance 0.
89
* Assert if the parent
affinity
instance is not 0.
97
*
affinity
levels 2 & 3 which are AFF_ABSEN
[
all
...]
fvp_pm.c
94
* should be performed for the specified
affinity
instance given its
96
* the highest
affinity
level which will enter the 'state'.
108
* Find the highest
affinity
level which will be suspended and postpone
120
* FVP handler called when an
affinity
instance is about to enter standby.
133
* FVP handler called when an
affinity
instance is about to be turned on. The
134
* level and mpidr determine the
affinity
instance.
145
* It's possible to turn on only
affinity
level 0 i.e. a cpu
146
* on the FVP. Ignore any other
affinity
level.
169
* FVP handler called when an
affinity
instance is about to be turned off. The
170
* level and mpidr determine the
affinity
instance. The 'state' arg. allows th
[
all
...]
/device/linaro/bootloader/arm-trusted-firmware/plat/juno/
plat_pm.c
61
* should be performed for the specified
affinity
instance given its
63
* the highest
affinity
level which will enter the 'state'.
75
* Find the highest
affinity
level which will be suspended and postpone
95
* It's possible to enter standby only on
affinity
level 0 i.e.
96
* a cpu on the Juno. Ignore any other
affinity
level.
113
* Juno handler called when an
affinity
instance is about to be turned on. The
114
* level and mpidr determine the
affinity
instance.
122
* SCP takes care of powering up higher
affinity
levels so we
140
* Juno handler called when an
affinity
instance has just been powered on after
141
* being turned off earlier. The level and mpidr determine the
affinity
[
all
...]
/external/toybox/toys/other/
taskset.c
1
/* taskset.c - Retrieve or set the CPU
affinity
of a process.
25
the processor
affinity
of an exisitng PID.
28
is allowed to run on. PID without a mask displays existing
affinity
.
30
-p Set/get the
affinity
of given PID instead of a new command.
31
-a Set/get the
affinity
of all threads of the PID.
49
char *s = *toys.optargs, *failed = "failed to %s %d's
affinity
";
59
printf("pid %d's %s
affinity
mask: ", pid, i ? "new" : "current");