Changeset 1b20da0 in mainline for kernel/generic/src/mm


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

Location:
kernel/generic/src/mm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rdf6ded8 r1b20da0  
    344344                         * page.
    345345                         */
    346                         int const gp = (guarded || 
     346                        int const gp = (guarded ||
    347347                            (area->flags & AS_AREA_GUARD)) ? 1 : 0;
    348348                       
  • kernel/generic/src/mm/backend_elf.c

    rdf6ded8 r1b20da0  
    349349
    350350                        frame = PTE_GET_FRAME(&pte);
    351                 }       
     351                }
    352352        } else if (upage >= start_anon) {
    353353                /*
     
    385385                    PAGE_SIZE - pad_lo - pad_hi);
    386386                if (entry->p_flags & PF_X) {
    387                         smc_coherence_block((void *) (kpage + pad_lo), 
     387                        smc_coherence_block((void *) (kpage + pad_lo),
    388388                            PAGE_SIZE - pad_lo - pad_hi);
    389389                }
  • kernel/generic/src/mm/backend_phys.c

    rdf6ded8 r1b20da0  
    6161typedef struct {
    6262        uintptr_t base;
    63         size_t frames; 
     63        size_t frames;
    6464} phys_shared_data_t;
    6565
  • kernel/generic/src/mm/frame.c

    rdf6ded8 r1b20da0  
    288288NO_TRACE static size_t find_free_zone_lowprio(size_t count, zone_flags_t flags,
    289289    pfn_t constraint, size_t hint)
    290 {       
     290{
    291291        for (size_t pos = 0; pos < zones.count; pos++) {
    292292                size_t i = (pos + hint) % zones.count;
  • kernel/generic/src/mm/km.c

    rdf6ded8 r1b20da0  
    5353static ra_arena_t *km_ni_arena;
    5454
    55 #define DEFERRED_PAGES_MAX      (PAGE_SIZE / sizeof(uintptr_t)) 
     55#define DEFERRED_PAGES_MAX      (PAGE_SIZE / sizeof(uintptr_t))
    5656
    5757/** Number of freed pages in the deferred buffer. */
     
    188188{
    189189        uintptr_t page;
    190         size_t offs; 
    191 
    192         offs = paddr - ALIGN_DOWN(paddr, FRAME_SIZE); 
     190        size_t offs;
     191
     192        offs = paddr - ALIGN_DOWN(paddr, FRAME_SIZE);
    193193        page = km_map_aligned(ALIGN_DOWN(paddr, FRAME_SIZE),
    194194            ALIGN_UP(size + offs, FRAME_SIZE), flags);
     
    205205void km_unmap(uintptr_t vaddr, size_t size)
    206206{
    207         size_t offs; 
    208 
    209         offs = vaddr - ALIGN_DOWN(vaddr, PAGE_SIZE); 
     207        size_t offs;
     208
     209        offs = vaddr - ALIGN_DOWN(vaddr, PAGE_SIZE);
    210210        km_unmap_aligned(ALIGN_DOWN(vaddr, PAGE_SIZE),
    211211            ALIGN_UP(size + offs, PAGE_SIZE));
     
    258258                page = km_map(frame, PAGE_SIZE,
    259259                    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
    260                 if (!page) {   
     260                if (!page) {
    261261                        frame_free(frame, 1);
    262262                        goto lowmem;
  • kernel/generic/src/mm/page.c

    rdf6ded8 r1b20da0  
    178178
    179179/** Make the mapping shared by all page tables (not address spaces).
    180  * 
     180 *
    181181 * @param base Starting virtual address of the range that is made global.
    182182 * @param size Size of the address range that is made global.
  • kernel/generic/src/mm/slab.c

    rdf6ded8 r1b20da0  
    3939 *
    4040 * with the following exceptions:
    41  * @li empty slabs are deallocated immediately 
     41 * @li empty slabs are deallocated immediately
    4242 *     (in Linux they are kept in linked list, in Solaris ???)
    4343 * @li empty magazines are deallocated when not needed
     
    5252 * good SMP scaling.
    5353 *
    54  * When a new object is being allocated, it is first checked, if it is 
     54 * When a new object is being allocated, it is first checked, if it is
    5555 * available in a CPU-bound magazine. If it is not found there, it is
    5656 * allocated from a CPU-shared slab - if a partially full one is found,
    57  * it is used, otherwise a new one is allocated. 
     57 * it is used, otherwise a new one is allocated.
    5858 *
    5959 * When an object is being deallocated, it is put to a CPU-bound magazine.
    60  * If there is no such magazine, a new one is allocated (if this fails, 
     60 * If there is no such magazine, a new one is allocated (if this fails,
    6161 * the object is deallocated into slab). If the magazine is full, it is
    6262 * put into cpu-shared list of magazines and a new one is allocated.
     
    7979 * the frame allocator fails to allocate a frame, it calls slab_reclaim().
    8080 * It tries 'light reclaim' first, then brutal reclaim. The light reclaim
    81  * releases slabs from cpu-shared magazine-list, until at least 1 slab 
     81 * releases slabs from cpu-shared magazine-list, until at least 1 slab
    8282 * is deallocated in each cache (this algorithm should probably change).
    8383 * The brutal reclaim removes all cached objects, even from CPU-bound
     
    9090 * to add cpu-cached magazine cache (which would allocate it's magazines
    9191 * from non-cpu-cached mag. cache). This would provide a nice per-cpu
    92  * buffer. The other possibility is to use the per-cache 
     92 * buffer. The other possibility is to use the per-cache
    9393 * 'empty-magazine-list', which decreases competing for 1 per-system
    9494 * magazine cache.
     
    660660}
    661661
    662 /** Create slab cache 
     662/** Create slab cache
    663663 *
    664664 */
Note: See TracChangeset for help on using the changeset viewer.