#ifndef CURVETUN_H #define CURVETUN_H #include #define FILE_CLIENTS ".curvetun/clients" #define FILE_SERVERS ".curvetun/servers" #define FILE_PRIVKEY ".curvetun/priv.key" #define FILE_PUBKEY ".curvetun/pub.key" #define FILE_USERNAM ".curvetun/username" #define LOCKFILE "/var/run/curvetun.pid" #define DEFAULT_KEY_LEN 64 #define PROTO_FLAG_EXIT (1 << 0) #define PROTO_FLAG_INIT (1 << 1) struct ct_proto { uint16_t payload; uint8_t flags; } __attribute__((packed)); /* FIXME: think up sth better */ #define TUNBUFF_SIZ (3 * RUNTIME_PAGE_SIZE) #define MAX_EPOLL_SIZE 10000 #define THREADS_PER_CPU 2 extern int server_main(char *home, char *dev, char *port, int udp, int ipv4, int log); extern int client_main(char *home, char *dev, char *host, char *port, int udp); #define DEVNAME_SERVER "curves0" #define DEVNAME_CLIENT "curvec0" #endif /* CURVETUN_H */ '> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Muckle <steve.muckle@linaro.org>2016-03-24 15:26:07 -0700
committerIngo Molnar <mingo@kernel.org>2016-04-23 14:20:40 +0200
commita2c6c91f98247fef0fe75216d607812485aeb0df (patch)
tree6869393fd94f588a69e079f9ae4ea14d1dc68562
parent41e0d37f7ac81297c07ba311e4ad39465b8c8295 (diff)
sched/fair: Call cpufreq hook in additional paths
The cpufreq hook should be called any time the root CFS rq utilization changes. This can occur when a task is switched to or from the fair class, or a task moves between groups or CPUs, but these paths currently do not call the cpufreq hook. Fix this by adding the hook to attach_entity_load_avg() and detach_entity_load_avg(). Suggested-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Steve Muckle <smuckle@linaro.org> [ Added the .update_freq argument to update_cfs_rq_load_avg() to avoid a double cpufreq call. ] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Byungchul Park <byungchul.park@lge.com> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Juri Lelli <Juri.Lelli@arm.com> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Morten Rasmussen <morten.rasmussen@arm.com> Cc: Patrick Bellasi <patrick.bellasi@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1458858367-2831-1-git-send-email-smuckle@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>