Skip to content

Commit

Permalink
Blackfin arch: make sure we declare the revid functions as pure (sinc…
Browse files Browse the repository at this point in the history
…e they are)

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 21, 2007
1 parent 0a29059 commit eb8d5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-blackfin/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier()

/* Get the Silicon Revision of the chip */
static inline uint32_t bfin_revid(void)
static inline __attribute_pure__ uint32_t bfin_revid(void)
{
/* stored in the upper 4 bits */
return bfin_read_CHIPID() >> 28;
}

static inline uint32_t bfin_compiled_revid(void)
static inline __attribute_pure__ uint32_t bfin_compiled_revid(void)
{
#if defined(CONFIG_BF_REV_0_0)
return 0;
Expand Down

0 comments on commit eb8d5f6

Please sign in to comment.