- powerpc-add-scaled-time-accounting-speedup.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <pbadari@xxxxxxxxxx>

Avoid reading PURR multiple times, by passing it in to read_spurr().

Signed-off-by: Badari Pulavarty <pbadari@xxxxxxxxxx>
Cc: Michael Neuling <mikey@xxxxxxxxxxx>
Cc: Balbir Singh <balbir@xxxxxxxxxx>
Cc: Jay Lan <jlan@xxxxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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 pbadari@xxxxxxxxxx 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux