The patch titled
Avoid unnecessary PURR reading
has been removed from the -mm tree. Its filename was
powerpc-add-scaled-time-accounting-speedup.patch
This patch was dropped because it was folded into
powerpc-add-scaled-time-accounting.patch
------------------------------------------------------
Subject: Avoid unnecessary PURR reading
From: Badari Pulavarty <[EMAIL PROTECTED]>
Avoid reading PURR multiple times, by passing it in to read_spurr().
Signed-off-by: Badari Pulavarty <[EMAIL PROTECTED]>
Cc: Michael Neuling <[EMAIL PROTECTED]>
Cc: Balbir Singh <[EMAIL PROTECTED]>
Cc: Jay Lan <[EMAIL PROTECTED]>
Cc: Paul Mackerras <[EMAIL PROTECTED]>
Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
arch/powerpc/kernel/time.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -puN arch/powerpc/kernel/time.c~powerpc-add-scaled-time-accounting-speedup
arch/powerpc/kernel/time.c
--- a/arch/powerpc/kernel/time.c~powerpc-add-scaled-time-accounting-speedup
+++ a/arch/powerpc/kernel/time.c
@@ -214,11 +214,11 @@ static u64 read_purr(void)
/*
* Read the SPURR on systems that have it, otherwise the purr
*/
-static u64 read_spurr(void)
+static u64 read_spurr(u64 purr)
{
if (cpu_has_feature(CPU_FTR_SPURR))
return mfspr(SPRN_SPURR);
- return read_purr();
+ return purr;
}
/*
@@ -234,7 +234,7 @@ void account_system_vtime(struct task_st
now = read_purr();
delta = now - get_paca()->startpurr;
get_paca()->startpurr = now;
- nowscaled = read_spurr();
+ nowscaled = read_spurr(now);
deltascaled = nowscaled - get_paca()->startspurr;
get_paca()->startspurr = nowscaled;
if (!in_interrupt()) {
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
sysctl-remove-the-binary-interface-for-aio-nr-aio-max-nr-acpi_video_flags.patch
powerpc-add-scaled-time-accounting.patch
powerpc-add-scaled-time-accounting-speedup.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html