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
nexedi
linux
Commits
8e645822
Commit
8e645822
authored
Mar 29, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Remove vm_region_dump() debugging.
parent
dd0fcd57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
arch/arm/mm/consistent.c
arch/arm/mm/consistent.c
+0
-19
No files found.
arch/arm/mm/consistent.c
View file @
8e645822
...
@@ -76,21 +76,6 @@ static struct vm_region consistent_head = {
...
@@ -76,21 +76,6 @@ static struct vm_region consistent_head = {
.
vm_end
=
CONSISTENT_END
,
.
vm_end
=
CONSISTENT_END
,
};
};
#if 0
static void vm_region_dump(struct vm_region *head, char *fn)
{
struct vm_region *c;
printk("Consistent Allocation Map (%s):\n", fn);
list_for_each_entry(c, &head->vm_list, vm_list) {
printk(" %p: %08lx - %08lx (0x%08x)\n", c,
c->vm_start, c->vm_end, c->vm_end - c->vm_start);
}
}
#else
#define vm_region_dump(head,fn) do { } while(0)
#endif
static
int
vm_region_alloc
(
struct
vm_region
*
head
,
struct
vm_region
*
new
,
size_t
size
)
static
int
vm_region_alloc
(
struct
vm_region
*
head
,
struct
vm_region
*
new
,
size_t
size
)
{
{
unsigned
long
addr
=
head
->
vm_start
,
end
=
head
->
vm_end
-
size
;
unsigned
long
addr
=
head
->
vm_start
,
end
=
head
->
vm_end
-
size
;
...
@@ -182,11 +167,9 @@ void *consistent_alloc(int gfp, size_t size, dma_addr_t *handle,
...
@@ -182,11 +167,9 @@ void *consistent_alloc(int gfp, size_t size, dma_addr_t *handle,
* consistent mapping region.
* consistent mapping region.
*/
*/
spin_lock_irqsave
(
&
consistent_lock
,
flags
);
spin_lock_irqsave
(
&
consistent_lock
,
flags
);
vm_region_dump
(
&
consistent_head
,
"before alloc"
);
res
=
vm_region_alloc
(
&
consistent_head
,
c
,
size
);
res
=
vm_region_alloc
(
&
consistent_head
,
c
,
size
);
vm_region_dump
(
&
consistent_head
,
"after alloc"
);
spin_unlock_irqrestore
(
&
consistent_lock
,
flags
);
spin_unlock_irqrestore
(
&
consistent_lock
,
flags
);
if
(
!
res
)
{
if
(
!
res
)
{
...
@@ -260,7 +243,6 @@ void consistent_free(void *vaddr, size_t size, dma_addr_t handle)
...
@@ -260,7 +243,6 @@ void consistent_free(void *vaddr, size_t size, dma_addr_t handle)
size
=
PAGE_ALIGN
(
size
);
size
=
PAGE_ALIGN
(
size
);
spin_lock_irqsave
(
&
consistent_lock
,
flags
);
spin_lock_irqsave
(
&
consistent_lock
,
flags
);
vm_region_dump
(
&
consistent_head
,
"before free"
);
c
=
vm_region_find
(
&
consistent_head
,
(
unsigned
long
)
vaddr
);
c
=
vm_region_find
(
&
consistent_head
,
(
unsigned
long
)
vaddr
);
if
(
!
c
)
if
(
!
c
)
...
@@ -300,7 +282,6 @@ void consistent_free(void *vaddr, size_t size, dma_addr_t handle)
...
@@ -300,7 +282,6 @@ void consistent_free(void *vaddr, size_t size, dma_addr_t handle)
list_del
(
&
c
->
vm_list
);
list_del
(
&
c
->
vm_list
);
vm_region_dump
(
&
consistent_head
,
"after free"
);
spin_unlock_irqrestore
(
&
consistent_lock
,
flags
);
spin_unlock_irqrestore
(
&
consistent_lock
,
flags
);
kfree
(
c
);
kfree
(
c
);
...
...
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