Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57357
b: refs/heads/master
c: 6291ed3
h: refs/heads/master
i:
  57355: b13048c
v: v3
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Jun 7, 2007
1 parent 5b7d58e commit bd5dd21
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b74d0deb968e1f85942f17080eace015ce3c332c
refs/heads/master: 6291ed3c04d5c83c26e77d4fa47e06d0416be81d
8 changes: 0 additions & 8 deletions trunk/arch/powerpc/platforms/pasemi/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#define IOBMAP_PAGE_SIZE (1 << IOBMAP_PAGE_SHIFT)
#define IOBMAP_PAGE_MASK (IOBMAP_PAGE_SIZE - 1)

#define IOBMAP_PAGE_FACTOR (PAGE_SHIFT - IOBMAP_PAGE_SHIFT)

#define IOB_BASE 0xe0000000
#define IOB_SIZE 0x3000
/* Configuration registers */
Expand Down Expand Up @@ -97,9 +95,6 @@ static void iobmap_build(struct iommu_table *tbl, long index,

bus_addr = (tbl->it_offset + index) << PAGE_SHIFT;

npages <<= IOBMAP_PAGE_FACTOR;
index <<= IOBMAP_PAGE_FACTOR;

ip = ((u32 *)tbl->it_base) + index;

while (npages--) {
Expand All @@ -125,9 +120,6 @@ static void iobmap_free(struct iommu_table *tbl, long index,

bus_addr = (tbl->it_offset + index) << PAGE_SHIFT;

npages <<= IOBMAP_PAGE_FACTOR;
index <<= IOBMAP_PAGE_FACTOR;

ip = ((u32 *)tbl->it_base) + index;

while (npages--) {
Expand Down
16 changes: 4 additions & 12 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ static int recalc_sigpending_tsk(struct task_struct *t)
set_tsk_thread_flag(t, TIF_SIGPENDING);
return 1;
}
/*
* We must never clear the flag in another thread, or in current
* when it's possible the current syscall is returning -ERESTART*.
* So we don't clear it here, and only callers who know they should do.
*/
clear_tsk_thread_flag(t, TIF_SIGPENDING);
return 0;
}

Expand All @@ -125,9 +121,7 @@ void recalc_sigpending_and_wake(struct task_struct *t)

void recalc_sigpending(void)
{
if (!recalc_sigpending_tsk(current))
clear_thread_flag(TIF_SIGPENDING);

recalc_sigpending_tsk(current);
}

/* Given the mask, find the first available signal that should be serviced. */
Expand Down Expand Up @@ -391,8 +385,7 @@ int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
}
}
}
if (likely(tsk == current))
recalc_sigpending();
recalc_sigpending_tsk(tsk);
if (signr && unlikely(sig_kernel_stop(signr))) {
/*
* Set a marker that we have dequeued a stop signal. Our
Expand Down Expand Up @@ -1587,9 +1580,8 @@ static void ptrace_stop(int exit_code, int nostop_code, siginfo_t *info)
/*
* Queued signals ignored us while we were stopped for tracing.
* So check for any that we should take before resuming user mode.
* This sets TIF_SIGPENDING, but never clears it.
*/
recalc_sigpending_tsk(current);
recalc_sigpending();
}

void ptrace_notify(int exit_code)
Expand Down
Empty file modified trunk/scripts/checkpatch.pl
100755 → 100644
Empty file.

0 comments on commit bd5dd21

Please sign in to comment.