Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
7afe16c2
Commit
7afe16c2
authored
Mar 13, 2009
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'v2.6.29-rc8' into tracing/ftrace
parents
2084e022
041b6237
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Makefile
Makefile
+1
-1
lib/bitmap.c
lib/bitmap.c
+8
-8
No files found.
Makefile
View file @
7afe16c2
VERSION
=
2
VERSION
=
2
PATCHLEVEL
=
6
PATCHLEVEL
=
6
SUBLEVEL
=
29
SUBLEVEL
=
29
EXTRAVERSION
=
-rc
7
EXTRAVERSION
=
-rc
8
NAME
=
Erotic Pickled Herring
NAME
=
Erotic Pickled Herring
# *DOCUMENTATION*
# *DOCUMENTATION*
...
...
lib/bitmap.c
View file @
7afe16c2
...
@@ -948,15 +948,15 @@ done:
...
@@ -948,15 +948,15 @@ done:
*/
*/
int
bitmap_find_free_region
(
unsigned
long
*
bitmap
,
int
bits
,
int
order
)
int
bitmap_find_free_region
(
unsigned
long
*
bitmap
,
int
bits
,
int
order
)
{
{
int
pos
;
/* scans bitmap by regions of size order */
int
pos
,
end
;
/* scans bitmap by regions of size order */
for
(
pos
=
0
;
pos
<
bits
;
pos
+=
(
1
<<
order
))
for
(
pos
=
0
;
(
end
=
pos
+
(
1
<<
order
))
<=
bits
;
pos
=
end
)
{
if
(
__reg_op
(
bitmap
,
pos
,
order
,
REG_OP_ISFREE
))
if
(
!
__reg_op
(
bitmap
,
pos
,
order
,
REG_OP_ISFREE
))
break
;
continue
;
if
(
pos
==
bits
)
return
-
ENOMEM
;
__reg_op
(
bitmap
,
pos
,
order
,
REG_OP_ALLOC
);
__reg_op
(
bitmap
,
pos
,
order
,
REG_OP_ALLOC
);
return
pos
;
return
pos
;
}
return
-
ENOMEM
;
}
}
EXPORT_SYMBOL
(
bitmap_find_free_region
);
EXPORT_SYMBOL
(
bitmap_find_free_region
);
...
...
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