Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107611
b: refs/heads/master
c: 6a9545b
h: refs/heads/master
i:
  107609: 6556809
  107607: e484b2c
v: v3
  • Loading branch information
Paul Mundt committed Aug 4, 2008
1 parent 3559044 commit 9eb6ef9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 38 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: 617870632de6739fca0893f3e6648e9ae1bd0ddb
refs/heads/master: 6a9545bd95e88d61df942b9087cb59b8c7a6dc56
12 changes: 3 additions & 9 deletions trunk/arch/sh/include/asm/tlb_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,29 @@
#ifndef __ASSEMBLY__

/**
* for_each_dtlb_entry
* for_each_dtlb_entry - Iterate over free (non-wired) DTLB entries
*
* @tlb: TLB entry
*
* Iterate over free (non-wired) DTLB entries
*/
#define for_each_dtlb_entry(tlb) \
for (tlb = cpu_data->dtlb.first; \
tlb <= cpu_data->dtlb.last; \
tlb += cpu_data->dtlb.step)

/**
* for_each_itlb_entry
* for_each_itlb_entry - Iterate over free (non-wired) ITLB entries
*
* @tlb: TLB entry
*
* Iterate over free (non-wired) ITLB entries
*/
#define for_each_itlb_entry(tlb) \
for (tlb = cpu_data->itlb.first; \
tlb <= cpu_data->itlb.last; \
tlb += cpu_data->itlb.step)

/**
* __flush_tlb_slot
* __flush_tlb_slot - Flushes TLB slot @slot.
*
* @slot: Address of TLB slot.
*
* Flushes TLB slot @slot.
*/
static inline void __flush_tlb_slot(unsigned long long slot)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/kernel/cpu/sh4/sq.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ EXPORT_SYMBOL(sq_remap);

/**
* sq_unmap - Unmap a Store Queue allocation
* @map: Pre-allocated Store Queue mapping.
* @vaddr: Pre-allocated Store Queue mapping.
*
* Unmaps the store queue allocation @map that was previously created by
* sq_remap(). Also frees up the pte that was previously inserted into
Expand Down
20 changes: 6 additions & 14 deletions trunk/arch/sh/mm/tlb-sh5.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#include <asm/mmu_context.h>

/**
* sh64_tlb_init
*
* Perform initial setup for the DTLB and ITLB.
* sh64_tlb_init - Perform initial setup for the DTLB and ITLB.
*/
int __init sh64_tlb_init(void)
{
Expand Down Expand Up @@ -46,19 +44,15 @@ int __init sh64_tlb_init(void)
}

/**
* sh64_next_free_dtlb_entry
*
* Find the next available DTLB entry
* sh64_next_free_dtlb_entry - Find the next available DTLB entry
*/
unsigned long long sh64_next_free_dtlb_entry(void)
{
return cpu_data->dtlb.next;
}

/**
* sh64_get_wired_dtlb_entry
*
* Allocate a wired (locked-in) entry in the DTLB
* sh64_get_wired_dtlb_entry - Allocate a wired (locked-in) entry in the DTLB
*/
unsigned long long sh64_get_wired_dtlb_entry(void)
{
Expand All @@ -71,12 +65,10 @@ unsigned long long sh64_get_wired_dtlb_entry(void)
}

/**
* sh64_put_wired_dtlb_entry
* sh64_put_wired_dtlb_entry - Free a wired (locked-in) entry in the DTLB.
*
* @entry: Address of TLB slot.
*
* Free a wired (locked-in) entry in the DTLB.
*
* Works like a stack, last one to allocate must be first one to free.
*/
int sh64_put_wired_dtlb_entry(unsigned long long entry)
Expand Down Expand Up @@ -115,7 +107,7 @@ int sh64_put_wired_dtlb_entry(unsigned long long entry)
}

/**
* sh64_setup_tlb_slot
* sh64_setup_tlb_slot - Load up a translation in a wired slot.
*
* @config_addr: Address of TLB slot.
* @eaddr: Virtual address.
Expand Down Expand Up @@ -154,7 +146,7 @@ inline void sh64_setup_tlb_slot(unsigned long long config_addr,
}

/**
* sh64_teardown_tlb_slot
* sh64_teardown_tlb_slot - Teardown a translation.
*
* @config_addr: Address of TLB slot.
*
Expand Down
27 changes: 14 additions & 13 deletions trunk/drivers/sh/maple/maple.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ static void maple_release_device(struct device *dev)
kfree(mdev);
}

/*
/**
* maple_add_packet - add a single instruction to the queue
* @mdev - maple device
* @function - function on device being queried
* @command - maple command to add
* @length - length of command string (in 32 bit words)
* @data - remainder of command string
* @mdev: maple device
* @function: function on device being queried
* @command: maple command to add
* @length: length of command string (in 32 bit words)
* @data: remainder of command string
*/
int maple_add_packet(struct maple_device *mdev, u32 function, u32 command,
size_t length, void *data)
Expand Down Expand Up @@ -194,14 +194,15 @@ int maple_add_packet(struct maple_device *mdev, u32 function, u32 command,
}
EXPORT_SYMBOL_GPL(maple_add_packet);

/*
/**
* maple_add_packet_sleeps - add a single instruction to the queue
* - waits for lock to be free
* @mdev - maple device
* @function - function on device being queried
* @command - maple command to add
* @length - length of command string (in 32 bit words)
* @data - remainder of command string
* @mdev: maple device
* @function: function on device being queried
* @command: maple command to add
* @length: length of command string (in 32 bit words)
* @data: remainder of command string
*
* Same as maple_add_packet(), but waits for the lock to become free.
*/
int maple_add_packet_sleeps(struct maple_device *mdev, u32 function,
u32 command, size_t length, void *data)
Expand Down

0 comments on commit 9eb6ef9

Please sign in to comment.