Commit 3d5675c8 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: remove high2lowuid.

ppc64: remove schedule() after set_cpus_allowed()
parent 58d48ed9
......@@ -86,8 +86,6 @@ int idled(void)
mtspr(CTRLT, CTRL);
#endif
printk("cpu %d hits idle loop\n", smp_processor_id());
paca = (struct Paca *)mfspr(SPRG3);
while(1) {
......
......@@ -224,7 +224,6 @@ static int rtasd(void *unused)
cpu = 0;
set_cpus_allowed(current, 1UL << cpu_logical_map(cpu));
schedule();
while(1) {
do {
......@@ -262,9 +261,7 @@ static int rtasd(void *unused)
/* Check all cpus for pending events before sleeping*/
if (first_pass) {
schedule();
} else {
if (!first_pass) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout((HZ*60/rtas_event_scan_rate) / 2);
}
......
......@@ -932,8 +932,8 @@ static int cp_new_stat32(struct kstat *stat, struct stat32 *statbuf)
err |= put_user(stat->ino, &statbuf->st_ino);
err |= put_user(stat->mode, &statbuf->st_mode);
err |= put_user(stat->nlink, &statbuf->st_nlink);
err |= put_user(high2lowuid(stat->uid), &statbuf->st_uid);
err |= put_user(high2lowgid(stat->gid), &statbuf->st_gid);
err |= put_user(stat->uid, &statbuf->st_uid);
err |= put_user(stat->gid, &statbuf->st_gid);
err |= put_user(stat->rdev, &statbuf->st_rdev);
if (stat->size > MAX_NON_LFS)
return -EOVERFLOW;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment