mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
s390: Remove cond_resched() calls
Since [1] cond_resched() is a no-op on s390. Remove all calls.
[1] commit 7dadeaa6e8 ("sched: Further restrict the preemption modes")
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
97d86fc847
commit
de8ca0119a
|
|
@ -1493,7 +1493,6 @@ static int cfset_all_copy(unsigned long arg, cpumask_t *mask)
|
|||
goto out;
|
||||
}
|
||||
uptr += sizeof(struct s390_ctrset_cpudata) + cpuhw->used;
|
||||
cond_resched();
|
||||
}
|
||||
cpus = cpumask_weight(mask);
|
||||
if (put_user(cpus, &ctrset_read->no_cpus))
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ static long cmm_alloc_pages(long nr, long *counter,
|
|||
(*counter)++;
|
||||
spin_unlock(&cmm_lock);
|
||||
nr--;
|
||||
cond_resched();
|
||||
}
|
||||
return nr;
|
||||
}
|
||||
|
|
@ -134,7 +133,6 @@ static long cmm_free_pages(long nr, long *counter, struct cmm_page_array **list)
|
|||
inc = __cmm_free_pages(inc, counter, list);
|
||||
if (inc)
|
||||
break;
|
||||
cond_resched();
|
||||
}
|
||||
return nr + inc;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,6 @@ static int walk_pte_level(pmd_t *pmdp, unsigned long addr, unsigned long end,
|
|||
pgt_set((unsigned long *)ptep, pte_val(new), addr, CRDTE_DTT_PAGE);
|
||||
ptep++;
|
||||
addr += PAGE_SIZE;
|
||||
cond_resched();
|
||||
} while (addr < end);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -194,7 +193,6 @@ static int walk_pmd_level(pud_t *pudp, unsigned long addr, unsigned long end,
|
|||
}
|
||||
pmdp++;
|
||||
addr = next;
|
||||
cond_resched();
|
||||
} while (addr < end);
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -281,7 +279,6 @@ static int walk_pud_level(p4d_t *p4d, unsigned long addr, unsigned long end,
|
|||
}
|
||||
pudp++;
|
||||
addr = next;
|
||||
cond_resched();
|
||||
} while (addr < end && !rc);
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -301,7 +298,6 @@ static int walk_p4d_level(pgd_t *pgd, unsigned long addr, unsigned long end,
|
|||
rc = walk_pud_level(p4dp, addr, next, flags);
|
||||
p4dp++;
|
||||
addr = next;
|
||||
cond_resched();
|
||||
} while (addr < end && !rc);
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -323,7 +319,6 @@ static int change_page_attr(unsigned long addr, unsigned long end,
|
|||
rc = walk_p4d_level(pgdp, addr, next, flags);
|
||||
if (rc)
|
||||
break;
|
||||
cond_resched();
|
||||
} while (pgdp++, addr = next, addr < end && !rc);
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,7 +268,6 @@ static int base_segment_walk(unsigned long *origin, unsigned long addr,
|
|||
return rc;
|
||||
if (!alloc)
|
||||
base_pgt_free(table);
|
||||
cond_resched();
|
||||
} while (ste++, addr = next, addr < end);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1173,10 +1173,8 @@ int zpci_scan_devices(void)
|
|||
return rc;
|
||||
|
||||
zpci_add_devices(&scan_list);
|
||||
zpci_bus_for_each(zbus) {
|
||||
zpci_bus_for_each(zbus)
|
||||
zpci_bus_scan_bus(zbus);
|
||||
cond_resched();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user