x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / tile / include / asm / setup.h
blob2a0347af070219b0938717d2f73acb40ad48767a
1 /*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
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.
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.
14 #ifndef _ASM_TILE_SETUP_H
15 #define _ASM_TILE_SETUP_H
18 #include <linux/pfn.h>
19 #include <linux/init.h>
20 #include <uapi/asm/setup.h>
23 * Reserved space for vmalloc and iomap - defined in asm/page.h
25 #define MAXMEM_PFN PFN_DOWN(MAXMEM)
27 int tile_console_write(const char *buf, int count);
29 #ifdef CONFIG_EARLY_PRINTK
30 void early_panic(const char *fmt, ...);
31 #else
32 #define early_panic panic
33 #endif
35 /* Init-time routine to do tile-specific per-cpu setup. */
36 void setup_cpu(int boot);
38 /* User-level DMA management functions */
39 void grant_dma_mpls(void);
40 void restrict_dma_mpls(void);
42 #ifdef CONFIG_HARDWALL
43 /* User-level network management functions */
44 void reset_network_state(void);
45 struct task_struct;
46 void hardwall_switch_tasks(struct task_struct *prev, struct task_struct *next);
47 void hardwall_deactivate_all(struct task_struct *task);
48 int hardwall_ipi_valid(int cpu);
50 /* Hook hardwall code into changes in affinity. */
51 #define arch_set_cpus_allowed(p, new_mask) do { \
52 if (!cpumask_equal(&p->cpus_allowed, new_mask)) \
53 hardwall_deactivate_all(p); \
54 } while (0)
55 #endif
57 #endif /* _ASM_TILE_SETUP_H */