Skip to contentSkip to conversation

+ sched_clock-document-4mhz-vs-1mhz-decision.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 28, 2013

lore
Share & tools
lore
#0 lore raw

Subject: + sched_clock-document-4mhz-vs-1mhz-decision.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 28 Aug 2013 14:14:10 -0700

The patch titled
Subject: sched_clock: document 4Mhz vs 1Mhz decision
has been added to the -mm tree. Its filename is
sched_clock-document-4mhz-vs-1mhz-decision.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/sched_clock-document-4mhz-vs-1mhz-decision.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/sched_clock-document-4mhz-vs-1mhz-decision.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Stephen Boyd <[email protected]>
Subject: sched_clock: document 4Mhz vs 1Mhz decision

Bo Shen sent a patch to change this to 1Mhz instead of 4Mhz but according to Russell King the use of 4Mhz was intentional. Add a comment to this effect so that others don't try to change the code as well.

---

 kernel/time/sched_clock.c |    4 ++++
 1 file changed, 4 insertions(+)
kernel/time/sched_clock.c renamed from kernel/time/sched_clock.c~sched_clock-document-4mhz-vs-1mhz-decision +4 -0
diff -puN kernel/time/sched_clock.c~sched_clock-document-4mhz-vs-1mhz-decision kernel/time/sched_clock.c
@@ -128,6 +128,10 @@ void __init setup_sched_clock(u32 (*read
 	clocks_calc_mult_shift(&cd.mult, &cd.shift, rate, NSEC_PER_SEC, 0);
 
 	r = rate;
+	/*
+	 * Use 4MHz instead of 1MHz so that things like 1.832Mhz show as
+	 * 1832Khz
+	 */
 	if (r >= 4000000) {
 		r /= 1000000;
 		r_unit = 'M';

_

Patches currently in -mm which might be from [email protected] are

drivers-iommu-remove-unnecessary-platform_set_drvdata.patch sched_clock-document-4mhz-vs-1mhz-decision.patch panic-call-panic-handlers-before-kmsg_dump.patch linux-next.patch