Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
043b111e
Commit
043b111e
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Hyperthreading binfmt.
Another from 2.4, see comments for details
parent
4e413ec6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
fs/binfmt_elf.c
fs/binfmt_elf.c
+15
-1
No files found.
fs/binfmt_elf.c
View file @
043b111e
...
@@ -138,6 +138,21 @@ create_elf_tables(char *p, int argc, int envc,
...
@@ -138,6 +138,21 @@ create_elf_tables(char *p, int argc, int envc,
}
else
}
else
u_platform
=
p
;
u_platform
=
p
;
#if defined(__i386__) && defined(CONFIG_SMP)
/*
* In some cases (e.g. Hyper-Threading), we want to avoid L1 evictions
* by the processes running on the same package. One thing we can do
* is to shuffle the initial stack for them.
*
* The conditionals here are unneeded, but kept in to make the
* code behaviour the same as pre change unless we have hyperthreaded
* processors. This should be cleaned up before 2.6
*/
if
(
smp_num_siblings
>
1
)
u_platform
=
u_platform
-
((
current
->
pid
%
64
)
<<
7
);
#endif
/*
/*
* Force 16 byte _final_ alignment here for generality.
* Force 16 byte _final_ alignment here for generality.
*/
*/
...
@@ -553,7 +568,6 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
...
@@ -553,7 +568,6 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
SET_PERSONALITY
(
elf_ex
,
ibcs2_interpreter
);
SET_PERSONALITY
(
elf_ex
,
ibcs2_interpreter
);
}
}
/* OK, we are done with that, now set up the arg stuff,
/* OK, we are done with that, now set up the arg stuff,
and then start this sucker up */
and then start this sucker up */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment