Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42603
b: refs/heads/master
c: 9f650cf
h: refs/heads/master
i:
  42601: 57b3d4d
  42599: 4de98b7
v: v3
  • Loading branch information
Paul Mundt committed Dec 6, 2006
1 parent 0d12e6a commit 84fa6b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fc21b82ef74911887ced1aff8d37ce079bb8b36
refs/heads/master: 9f650cf2b811cfb605f10483eeb1dc86f43cdbcb
11 changes: 5 additions & 6 deletions trunk/arch/sh/kernel/cpu/sh4/sq.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>
#include <asm/io.h>
#include <linux/io.h>
#include <asm/page.h>
#include <asm/cacheflush.h>
#include <asm/cpu/sq.h>
Expand Down Expand Up @@ -67,6 +67,7 @@ void sq_flush_range(unsigned long start, unsigned int len)
/* Wait for completion */
store_queue_barrier();
}
EXPORT_SYMBOL(sq_flush_range);

static inline void sq_mapping_list_add(struct sq_mapping *map)
{
Expand Down Expand Up @@ -166,7 +167,7 @@ unsigned long sq_remap(unsigned long phys, unsigned int size,
map->size = size;
map->name = name;

page = bitmap_find_free_region(sq_bitmap, 0x04000000,
page = bitmap_find_free_region(sq_bitmap, 0x04000000 >> PAGE_SHIFT,
get_order(map->size));
if (unlikely(page < 0)) {
ret = -ENOSPC;
Expand All @@ -193,6 +194,7 @@ unsigned long sq_remap(unsigned long phys, unsigned int size,
kmem_cache_free(sq_cache, map);
return ret;
}
EXPORT_SYMBOL(sq_remap);

/**
* sq_unmap - Unmap a Store Queue allocation
Expand Down Expand Up @@ -234,6 +236,7 @@ void sq_unmap(unsigned long vaddr)

kmem_cache_free(sq_cache, map);
}
EXPORT_SYMBOL(sq_unmap);

/*
* Needlessly complex sysfs interface. Unfortunately it doesn't seem like
Expand Down Expand Up @@ -402,7 +405,3 @@ module_exit(sq_api_exit);
MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>, M. R. Brown <mrbrown@0xd6.org>");
MODULE_DESCRIPTION("Simple API for SH-4 integrated Store Queues");
MODULE_LICENSE("GPL");

EXPORT_SYMBOL(sq_remap);
EXPORT_SYMBOL(sq_unmap);
EXPORT_SYMBOL(sq_flush_range);

0 comments on commit 84fa6b1

Please sign in to comment.