/*1* Copyright 2010 Tilera Corporation. All Rights Reserved.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License5* as published by the Free Software Foundation, version 2.6*7* This program is distributed in the hope that it will be useful, but8* WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or10* NON INFRINGEMENT. See the GNU General Public License for11* more details.12*/1314#ifndef _ASM_TILE_CURRENT_H15#define _ASM_TILE_CURRENT_H1617#include <linux/thread_info.h>1819struct task_struct;2021static inline struct task_struct *get_current(void)22{23return current_thread_info()->task;24}25#define current get_current()2627/* Return a usable "task_struct" pointer even if the real one is corrupt. */28struct task_struct *validate_current(void);2930#endif /* _ASM_TILE_CURRENT_H */313233