blob: 2f572b6b7bc2b6efd259ba6880da4bbf02f5bc79 [file] [log] [blame]
Chris Metcalf9f9c0382010-06-25 17:00:56 -04001/*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
13 *
Chris Metcalfb8ace082012-03-30 16:01:48 -040014 * Provide methods for access control of per-cpu resources like
15 * UDN, IDN, or IPI.
Chris Metcalf9f9c0382010-06-25 17:00:56 -040016 */
Chris Metcalf9f9c0382010-06-25 17:00:56 -040017#ifndef _ASM_TILE_HARDWALL_H
18#define _ASM_TILE_HARDWALL_H
19
David Howellsdf842f72012-10-09 09:47:47 +010020#include <uapi/asm/hardwall.h>
Chris Metcalf9f9c0382010-06-25 17:00:56 -040021
Chris Metcalff133ecc2011-05-26 12:40:09 -040022/* /proc hooks for hardwall. */
23struct proc_dir_entry;
24#ifdef CONFIG_HARDWALL
25void proc_tile_hardwall_init(struct proc_dir_entry *root);
26int proc_pid_hardwall(struct task_struct *task, char *buffer);
27#else
28static inline void proc_tile_hardwall_init(struct proc_dir_entry *root) {}
29#endif
Chris Metcalf9f9c0382010-06-25 17:00:56 -040030#endif /* _ASM_TILE_HARDWALL_H */