Contributors: 9
	  
        
          | Author | 
          Tokens | 
          Token Proportion | 
          Commits | 
          Commit Proportion | 
        
	  
	  
        
        
          | Aneesh Kumar K.V | 
          68 | 
          45.33% | 
          1 | 
          8.33% | 
        
        
          | David Gibson | 
          37 | 
          24.67% | 
          2 | 
          16.67% | 
        
        
          | Christophe Leroy | 
          31 | 
          20.67% | 
          2 | 
          16.67% | 
        
        
          | Anton Blanchard | 
          5 | 
          3.33% | 
          1 | 
          8.33% | 
        
        
          | Benjamin Herrenschmidt | 
          4 | 
          2.67% | 
          2 | 
          16.67% | 
        
        
          | Tejun Heo | 
          2 | 
          1.33% | 
          1 | 
          8.33% | 
        
        
          | Greg Kroah-Hartman | 
          1 | 
          0.67% | 
          1 | 
          8.33% | 
        
        
          | Andrew Morton | 
          1 | 
          0.67% | 
          1 | 
          8.33% | 
        
        
          | Paul Mackerras | 
          1 | 
          0.67% | 
          1 | 
          8.33% | 
        
	  
	  
        
          | Total | 
          150 | 
           | 
          12 | 
           | 
	    
	  
    
 
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_PGALLOC_32_H
#define _ASM_POWERPC_PGALLOC_32_H
#include <linux/threads.h>
#include <linux/slab.h>
/*
 * We don't have any real pmd's, and this code never triggers because
 * the pgd will always be present..
 */
/* #define pmd_alloc_one(mm,address)       ({ BUG(); ((pmd_t *)2); }) */
#define pmd_free(mm, x) 		do { } while (0)
#define __pmd_free_tlb(tlb,x,a)		do { } while (0)
/* #define pgd_populate(mm, pmd, pte)      BUG() */
static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp,
				       pte_t *pte)
{
	if (IS_ENABLED(CONFIG_BOOKE))
		*pmdp = __pmd((unsigned long)pte | _PMD_PRESENT);
	else
		*pmdp = __pmd(__pa(pte) | _PMD_PRESENT);
}
static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp,
				pgtable_t pte_page)
{
	if (IS_ENABLED(CONFIG_BOOKE))
		*pmdp = __pmd((unsigned long)pte_page | _PMD_PRESENT);
	else
		*pmdp = __pmd(__pa(pte_page) | _PMD_USER | _PMD_PRESENT);
}
#endif /* _ASM_POWERPC_PGALLOC_32_H */