[PARISC] Add __read_mostly section for parisc
Flag a whole bunch of things as __read_mostly on parisc. Also flag a few branches as unlikely() and cleanup a bit of code. Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:

committed by
Kyle McMartin

parent
02706647a4
commit
8039de10aa
@@ -38,7 +38,7 @@
|
||||
*/
|
||||
#undef DEBUG_PAT
|
||||
|
||||
int pdc_type = PDC_TYPE_ILLEGAL;
|
||||
int pdc_type __read_mostly = PDC_TYPE_ILLEGAL;
|
||||
|
||||
void __init setup_pdc(void)
|
||||
{
|
||||
@@ -120,8 +120,8 @@ set_pmem_entry(physmem_range_t *pmem_ptr, unsigned long start,
|
||||
* pdc info is bad in this case).
|
||||
*/
|
||||
|
||||
if ( ((start & (PAGE_SIZE - 1)) != 0)
|
||||
|| ((pages4k & ((1UL << PDC_PAGE_ADJ_SHIFT) - 1)) != 0) ) {
|
||||
if (unlikely( ((start & (PAGE_SIZE - 1)) != 0)
|
||||
|| ((pages4k & ((1UL << PDC_PAGE_ADJ_SHIFT) - 1)) != 0) )) {
|
||||
|
||||
panic("Memory range doesn't align with page size!\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user