summaryrefslogtreecommitdiff
path: root/proc.h
blob: 0a31f36a1fca264575a906a523a8e2a5c644a16d (plain)
1
2
3
4
5
6
7
8
#ifndef PROC_H
#define PROC_H

extern void cpu_affinity(int cpu);
extern int set_proc_prio(int prio);
extern int set_sched_status(int policy, int priority);

#endif /* PROC_H */
n value='7'>7space:mode:
authorJohan Hovold <johan@kernel.org>2016-11-18 14:17:31 +0200
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-11-18 16:54:39 +0200
commita0ebf519b8a2666438d999c62995618c710573e5 (patch)
tree40ea96d5814491ac0f0e784c75bc69b24ecabf7d /arch/sh
parenta25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff)
stm class: Fix device leak in open error path
Make sure to drop the reference taken by class_find_device() also on allocation errors in open(). Signed-off-by: Johan Hovold <johan@kernel.org> Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for...") Cc: stable@vger.kernel.org # v4.6+ Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'arch/sh')