summaryrefslogtreecommitdiff
path: root/cpusched.h
blob: a7c26ce337fdfe2fa2af891ec902bbd185abaa7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * netsniff-ng - the packet sniffing beast
 * Copyright 2011 Daniel Borkmann.
 * Subject to the GPL, version 2.
 */

#ifndef CPUSCHED_H
#define CPUSCHED_H

extern void init_cpusched(unsigned int cpus);
extern unsigned int socket_to_cpu(int fd);
extern unsigned int register_socket(int fd);
extern void unregister_socket(int fd);
extern void destroy_cpusched(void);

#endif /* CPUSCHED_H */
space:mode:
authorStéphan Rafin <stephan@soliotek.com>2016-11-04 00:53:56 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-11-04 08:49:46 +0100
commitac95330b96376550ae7a533d1396272d675adfa2 (patch)
tree88a09eba4e06228afa8ade78ab862ed106082f9d /Documentation/i2c/fault-codes
parenta17b9e4c9c5e9c4da4385908af0377af11529266 (diff)
clk: sunxi: Fix M factor computation for APB1
commit cfa636886033 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct") introduced a regression for m factor computation in sun4i_get_apb1_factors function. The old code reassigned the "parent_rate" parameter to the targeted divisor value and was buggy for the returned frequency but not for the computed factors. Now, returned frequency is good but m factor is incorrectly computed (its max value 31 is always set resulting in a significantly slower frequency than the requested one...) This patch simply restores the original proper computation for m while keeping the good changes for returned rate. Fixes: cfa636886033 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct") Signed-off-by: Stéphan Rafin <stephan@soliotek.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'Documentation/i2c/fault-codes')