Skip to content

Commit

Permalink
metag: export _metag_da_present and cpu_2_hwthread_id
Browse files Browse the repository at this point in the history
Export the symbols _metag_da_present and cpu_2_hwthread_id to modules
(GPL only) to allow the imgdafs file system to be built as a module.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
  • Loading branch information
James Hogan committed Mar 27, 2013
1 parent 876d6dc commit e605ff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/metag/kernel/da.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
*/


#include <linux/export.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <asm/da.h>
#include <asm/metag_mem.h>

bool _metag_da_present;
EXPORT_SYMBOL_GPL(_metag_da_present);

int __init metag_da_probe(void)
{
Expand Down
1 change: 1 addition & 0 deletions arch/metag/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ struct machine_desc *machine_desc __initdata;
u8 cpu_2_hwthread_id[NR_CPUS] __read_mostly = {
[0 ... NR_CPUS-1] = BAD_HWTHREAD_ID
};
EXPORT_SYMBOL_GPL(cpu_2_hwthread_id);

/*
* Map a hardware thread ID to a Linux CPU number
Expand Down

0 comments on commit e605ff8

Please sign in to comment.