summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-03-22 06:26:29 -0700
committerDavid S. Miller <davem@davemloft.net>2019-03-23 21:43:21 -0400
commite6d1407013a91722ffc89e980d715eb9ce7b57f6 (patch)
tree2db96af75038ab5fbcc8010c0f060fab98dd906d /net/ipv4
parenta7a01ab312601ba5966ec80383e6bbef241d883f (diff)
tcp: remove conditional branches from tcp_mstamp_refresh()
tcp_clock_ns() (aka ktime_get_ns()) is using monotonic clock, so the checks we had in tcp_mstamp_refresh() are no longer relevant. This patch removes cpu stall (when the cache line is not hot) Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp_output.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 4522579aaca2..e265d1aeeb66 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -52,12 +52,8 @@ void tcp_mstamp_refresh(struct tcp_sock *tp)
{
u64 val = tcp_clock_ns();
- if (val > tp->tcp_clock_cache)
- tp->tcp_clock_cache = val;
-
- val = div_u64(val, NSEC_PER_USEC);
- if (val > tp->tcp_mstamp)
- tp->tcp_mstamp = val;
+ tp->tcp_clock_cache = val;
+ tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC);
}
static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
e-rebased Mirror of https://github.com/nextcloud/newsmatthias
summaryrefslogtreecommitdiffstats
path: root/templates/main.php
blob: 465dadabaa70dd64dbfa1806f1023de01674ae1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
\OCP\Util::addScript('news', 'vendor/angular/angular');
\OCP\Util::addScript('news', 'vendor/angular-route/angular-route');
\OCP\Util::addScript('news', 'vendor/angular-sanitize/angular-sanitize');
\OCP\Util::addScript('news', 'vendor/angular-animate/angular-animate');
\OCP\Util::addScript('news', 'vendor/momentjs/moment');
\OCP\Util::addScript('news', 'vendor/momentjs/min/langs');
\OCP\Util::addScript('news', 'vendor/bootstrap/tooltip');
\OCP\Util::addScript('news', 'build/app');

\OCP\Util::addStyle('news', 'bootstrap/tooltip');
\OCP\Util::addStyle('news', 'navigation');
\OCP\Util::addStyle('news', 'addnew');
\OCP\Util::addStyle('news', 'app');
\OCP\Util::addStyle('news', 'content');
\OCP\Util::addStyle('news', 'settings');
\OCP\Util::addStyle('news', 'showall');
?>


<div id="app" ng-app="News" ng-cloak ng-controller="AppController as App">

	<div id="global-loading" class="loading-icon" ng-show="App.loading.isLoading('global')"></div>
	<!--
	<div id="undo-container">
		<div undo-notification id="undo">
			<a href="#"><?php p($l->t('Undo deletion of %s', '{{ getCaption() }}')); ?></a>
		</div>
	</div>
	<news-translate key="appName"><?php p($l->t('News')); ?></news-translate>
	-->

	<div id="app-navigation" ng-controller="NavigationController" ng-hide="App.loading.isLoading('global')">

		<ul class="with-icon" data-id="0" droppable>
			<?php //print_unescaped($this->inc('part.addnew')) ?>
			<?php //print_unescaped($this->inc('part.feed.unread')) ?>
			<?php //print_unescaped($this->inc('part.feed.starred')) ?>
			<?php //print_unescaped($this->inc('part.listfeed', ['folderId' => '0'])) ?>
			<?php //print_unescaped($this->inc('part.listfolder')) ?>
			<?php //print_unescaped($this->inc('part.showall')); ?>
		</ul>

		<div id="app-settings" ng-controller="SettingsController">
			<!--<?php print_unescaped($this->inc('part.settings')) ?>-->
		</div>

	</div>

	<script type="text/ng-template" id="content.html"><?php print_unescaped($this->inc('part.content')) ?></script>

	<div id="app-content" ng-hide="App.loading.isLoading('global')" ng-view></div>

	<!--
	<div id="app-content" ng-class="{
			loading: isLoading(),
			autopaging: isAutoPaging()
		}"
		ng-controller="ItemController"
		ng-show="initialized && !feedBusinessLayer.noFeeds()"
		news-item-scroll="true"
		item-shortcuts
		news-pull-to-refresh="loadNew()"
		tabindex="-1"
		news-auto-focus>
		<?php print_unescaped($this->inc("part.items")); ?>
	</div>

	-->

</div>